Commit Graph

6685 Commits

Author SHA1 Message Date
drh
cdd0376a55 Make sure the iteration counter on aggregate functions is reset each
time the aggregate is used in an correlated subquery.  Ticket #3841. (CVS 6616)

FossilOrigin-Name: 4a86de35d57a0c8720772c29431c86cd9be1fb9b
2009-05-07 12:17:33 +00:00
drh
7f720d542d Version 3.6.14 (CVS 6615)
FossilOrigin-Name: 469ad1ded35f5ff8ab2f6e8f776d73a9cea73527
2009-05-07 02:26:07 +00:00
drh
b2f9efc3f0 Fix compiler warning found with gcc -Wextra. (CVS 6614)
FossilOrigin-Name: 93bdbc5e2f9771a30358cde03f0d3cb708d73d48
2009-05-06 19:03:13 +00:00
shane
60a4b53823 Changes to silence compiler warnings under MSVC. (CVS 6613)
FossilOrigin-Name: df599237e1ca8b4f361477a712cf761aa1fac3df
2009-05-06 18:57:09 +00:00
drh
6a863cdad8 Fix three variable initialization problems found by valgrind. (CVS 6612)
FossilOrigin-Name: 37428435978027f6baffa552306dd5dc29ce5cd5
2009-05-06 18:42:21 +00:00
chw
73ccf01737 updated vxworks makefile for 3.6.14 release (CVS 6611)
FossilOrigin-Name: 5d4bffaabbf6a809938f115de266b382183a0a96
2009-05-06 15:24:04 +00:00
drh
310bd20a81 Add a short pause to force a context swap while waiting for a separate process
to clear its lock in the lock4.test script. (CVS 6610)

FossilOrigin-Name: 4357e76d53f692cb7495fbde61b4b7580560f816
2009-05-06 00:52:40 +00:00
drh
dc70e4c365 Fix the test case misc3-6.11 so that it works correctly on UTF16 databases
after the fix of for ticket #3838, check-in (6603) (CVS 6609)

FossilOrigin-Name: c1e739e39b1df205f3beb4088ce7760a0d56359f
2009-05-06 00:49:00 +00:00
drh
76aeb34f0f Minor changes to the sqlite3_exec() implementation in legacy.c
to facility full coverage testing. (CVS 6608)

FossilOrigin-Name: 9e3016c1846174a64833394a00a09335e8446de8
2009-05-05 20:02:47 +00:00
drh
70b6367cd9 Bump the version number up to 3.6.14. (CVS 6607)
FossilOrigin-Name: f4549904b22ff2340a5830cd67ed001d1c4730a1
2009-05-05 18:01:58 +00:00
drh
5dc348a2e2 Changes to vacuum.c to facilitate full coverage testing. (CVS 6606)
FossilOrigin-Name: 866284654c1f163af4164fe8c698d30af32e4eaa
2009-05-05 17:37:22 +00:00
drh
3500ed6650 Make sure the left-shift operator never overflows. (CVS 6605)
FossilOrigin-Name: 300da30178c46ab9f2ceb0c3e3ee3eac73d5d8e1
2009-05-05 15:46:43 +00:00
drh
e289d6069a Changes to update.c to facilitate full coverage testing. (CVS 6604)
FossilOrigin-Name: 25a11b9ecae1befd3f58958d68f6346f1e1e47ad
2009-05-05 15:46:09 +00:00
drh
e3b9bfe6ab Make sure the default value on a column added using ALTER TABLE has the
correct encoding.  Ticket #3838. (CVS 6603)

FossilOrigin-Name: 7f89a860b7cd0993c36a8b0482c2bac950a875d6
2009-05-05 12:54:50 +00:00
drh
eeb23a4c24 Make sure va_arg() does not occur on the same line as any "if" statement
or "?" operator. (CVS 6602)

FossilOrigin-Name: 3543be6e34ebff48b1b0c1710ae6fec557b09b52
2009-05-04 20:20:16 +00:00
danielk1977
11c327aabe Avoid parsing cells that fit entirely on the b-tree page when searching a b-tree index. (CVS 6601)
FossilOrigin-Name: 77a8239548722f702ead9d7c60df0d68180948fb
2009-05-04 19:01:26 +00:00
drh
eba661f88f Changes to auth.c to promote full coverage testing. (CVS 6600)
FossilOrigin-Name: c7615b44583c4b3afa45b57c6047478c18c234e9
2009-05-04 18:01:39 +00:00
danielk1977
de630353d8 Speed up INSERT operations that add data to UNIQUE or PRIMARY KEY indexes by rationalizing duplicate seek operations. (CVS 6599)
FossilOrigin-Name: cac4f3d812f0a02ca5c1fa78d366f694403929a8
2009-05-04 11:42:29 +00:00
drh
ce9b0157f0 Work toward cleaning up the authorizer interface. Work is on-going. This
is an incremental check-in. (CVS 6598)

FossilOrigin-Name: 694662f7860179403e0cc55b45ae8afa45aa7dfb
2009-05-04 01:58:31 +00:00
drh
dee0e404d6 Changes to facility full coverage testing of util.c. (CVS 6597)
FossilOrigin-Name: a612299092a48b38c5f9cf430bbcaf41777cbcb3
2009-05-03 20:23:53 +00:00
drh
1b7ecbb4ce More changes to insert.c to facilitate full coverage testing. (CVS 6596)
FossilOrigin-Name: 46c4ec968bc22843c65744ab4a01ec7ac605567b
2009-05-03 01:00:59 +00:00
drh
098d1684d7 Simplifications to the uniqueness constraint failure error message
generation code. (CVS 6595)

FossilOrigin-Name: 8f3cac7682a0c992f95f7453aaf9a29b1fe35d6f
2009-05-02 15:46:46 +00:00
drh
e61922a6a1 Remove the aFKey hash table, which was not being used. Simplify the
FKey object.  Simplify the hash.c module since the copyKey parameter
formerly used only by aFKey is now no longer required. (CVS 6594)

FossilOrigin-Name: 80c43a355c6e482457abc2f9c3ad3a565cec55fb
2009-05-02 13:29:37 +00:00
drh
7895fdd452 Reduce the size of an integer literal in rowhash.tcl so that the test
is able to run with the default TCL installation on Mac OS 10.5. (CVS 6593)

FossilOrigin-Name: 2229accef308db9feac4e1de16b57e7f680dbb1a
2009-05-02 12:02:01 +00:00
danielk1977
3f632d5bd2 When a cursor points at the last entry of an intkey btree after an insert, leave it there (instead of moving it to the tree root node). This speeds up statements of the form "INSERT INTO ... SELECT ..." that use auto-generated rowids. (CVS 6592)
FossilOrigin-Name: 9950c0a79c82eb7d8495b0b1a8fe117d566e2387
2009-05-02 10:03:09 +00:00
danielk1977
9c3acf3cfe Do not reset the cursor before seeking it in sqlite3BtreeInsert(). This speeds up INSERT operations that use auto-generated rowid values. (CVS 6591)
FossilOrigin-Name: 20c4acc291def33980f584f882c76e85ee1c8238
2009-05-02 07:36:49 +00:00
drh
3f6e781d6a When checking indices for xfer compatibility, compare collating sequences
by string, not by pointer. (CVS 6590)

FossilOrigin-Name: 7d2b80c7addc2d03d49647da9c6df9113f01349d
2009-05-02 00:28:19 +00:00
drh
24fb627afa Record within the Token structure itself whether or not the token has
been dequoted.  This steals one bit from the length of a token and
thus limits the size of tokens to 1GiB. (CVS 6589)

FossilOrigin-Name: 12bcb03d9b9e1a31c1a3c67cbb4263cc0af2f3d0
2009-05-01 21:13:36 +00:00
drh
d51397a614 Fix an error message that is generated if the number of columns do not
match on an INSERT into a virtual table with hidden columns. (CVS 6588)

FossilOrigin-Name: 795b453c9a03c32d9d4cdf62823d2b9dd667cc44
2009-05-01 15:17:48 +00:00
drh
b56cd55b9a Update PRAGMA integrity_check so that it treats SQLITE_IOERR_NOMEM errors
from underlying components the same as SQLITE_NOMEM errors. (CVS 6587)

FossilOrigin-Name: 26444f2a4426d2e51464ef69ed83d3c78be2c11f
2009-05-01 13:16:54 +00:00
danielk1977
ff340d8e39 Change lock2.test so that it does not enter a busy loop if the child process exists unexpectedly. (CVS 6586)
FossilOrigin-Name: 164a7f5a45c3e7f7a73899678c374535b270b130
2009-05-01 10:55:34 +00:00
danielk1977
e979565473 Remove a NEVER() clause from a condition that is true at least once when running attachmalloc.test. (CVS 6585)
FossilOrigin-Name: 514efc7312d725c3fe35741e8c000526f3bdb3a6
2009-05-01 06:19:21 +00:00
danielk1977
bd2edd676b Fix for tempdb.test so that it passes when running the inmemory_journal permutation test. (CVS 6584)
FossilOrigin-Name: 0256187b512c5849ffae0644e6a42ec0ca2de894
2009-05-01 05:23:17 +00:00
drh
7fe45908cc Fix processing of BEFORE triggers on INSERT statements with RHS SELECTs
that insert a NULL into the INTEGER PRIMARY KEY.  Ticket #3832. (CVS 6583)

FossilOrigin-Name: 4a1f6a3a9ac8b476c86edac83b555adeef0be4e6
2009-05-01 02:08:04 +00:00
shane
eb4ac06f4e More cleanup, etc. to support MSVC compiles. (CVS 6582)
FossilOrigin-Name: 2cd9655e7313671f2bbe8d4a6f13246cbbf61205
2009-04-30 17:45:33 +00:00
drh
0038e0c08f Disable an always-false test in the attach.c module. (CVS 6581)
FossilOrigin-Name: 92b69481bd0eedf06599c40623b38a6f4990010a
2009-04-30 17:38:37 +00:00
danielk1977
f9d1a21421 Fix a problem with in-memory sub-journals and exclusive locking mode. Also a test script problem introduced by (6575). (CVS 6580)
FossilOrigin-Name: d67af3f5a21329e133aa6cf2be745a9f8c1a6562
2009-04-30 16:41:00 +00:00
drh
959b530d64 Documentation updates for sqlite3_set_authorizer(). No changes to code. (CVS 6579)
FossilOrigin-Name: 41f39c3145f2659fdb636cae07cdd424a10ac6e9
2009-04-30 15:59:56 +00:00
drh
c47fd8e031 Disallow attaching the same database multiple times to the same db connection
in shared cache mode, since doing so leads to deadlock. (CVS 6578)

FossilOrigin-Name: 715f14f1dcaf604d4794bf3e18e245d4f8c5d5a9
2009-04-30 13:30:32 +00:00
drh
9b3c24d15d Fix apparent typo on exclusive.test in the (6575) check-in. (CVS 6577)
FossilOrigin-Name: 95d22405e096355ce815cdb0908c4ef04107b490
2009-04-30 12:25:58 +00:00
drh
1c5141484c Changes sqlite3TempInMemory() to take a const parameter. (CVS 6576)
FossilOrigin-Name: aa29a14ca040db25dadbca787aa75be3b7588415
2009-04-30 12:25:10 +00:00
danielk1977
d829335e42 When SQLite is configured to use in-memory temp files (either by setting SQLITE_TEMP_STORE during compilation or using the temp_store pragma at run time), store statement/savepoint journals in memory also. Ticket #3825. (CVS 6575)
FossilOrigin-Name: 38f8c5a14cd221af9e115a0fea689f2ff39e30e5
2009-04-30 09:10:37 +00:00
drh
6c19747549 Fix a memory leak introduced in the previous check-in. (CVS 6574)
FossilOrigin-Name: f082bf36051fef92ddda0339777a00cd1f0ba988
2009-04-30 05:40:34 +00:00
drh
9ae7a7406d Take care not to leave a zombie attached database if the attachment fails
due to an encoding mismatch.  Update attach logic to always use dynamically
allocated error message strings. (CVS 6573)

FossilOrigin-Name: a6cb4002ada311b56fa2b7430b98b9a0fa698a01
2009-04-30 05:19:04 +00:00
drh
c0b61810ed Remove always-true tests from attach.c. In btree.c, always test the return
from sqlite3PagerSetPagesize() since it might return SQLITE_NOMEM. (CVS 6572)

FossilOrigin-Name: 8bf60b24ffcf6ac15f41eaa7f976b810e0c66734
2009-04-30 01:22:41 +00:00
drh
bbb5e4e073 Remove an always-true test from delete.c. Move the sqlite3OpenTable()
routine from delete.c to insert.c since it is not used in delete.c. (CVS 6571)

FossilOrigin-Name: 71756dc870910665ef5fdbc7343bc3eedbe3ce65
2009-04-30 00:11:09 +00:00
shane
a3628d14d7 Fixed compile for MSVC; removed compiler warnings; changes for NDEBUG build; minor code tweaks. (CVS 6570)
FossilOrigin-Name: e98b12425ff036b36165dfd2002e0530ca27a677
2009-04-29 18:11:59 +00:00
danielk1977
fad9194453 Modify the assemblePage() function in btree.c so that it runs slightly faster. (CVS 6569)
FossilOrigin-Name: 7ec42e989f1d4abdc6d52f8feebf51985f36b2bd
2009-04-29 17:49:59 +00:00
drh
d9c20d71c2 Update the documentation on the sqlite3_changes() and sqlite3_total_changes()
functions. (CVS 6568)

FossilOrigin-Name: 58c7bdb21c719bf06713ff8ffa7ee51cf1973712
2009-04-29 14:33:44 +00:00
danielk1977
6eacd28a28 Fix a case in where.c where a crash can follow a malloc failure. Also modify test code in test8.c to check a return code that was being dropped (causing a test in vtab_err.test to fail). (CVS 6567)
FossilOrigin-Name: 9664e2b6c69271a7ca55af7812a186773a7c6592
2009-04-29 11:50:53 +00:00
danielk1977
ae5558b2ae Add a version of cellSizePtr() that is faster than using sqlite3BtreeParseCellPtr(). This speeds up balance_nonroot(). (CVS 6566)
FossilOrigin-Name: e8f7f7b787fe941093edaea44db4d361fad1e002
2009-04-29 11:31:47 +00:00
danielk1977
7b801388f5 Simplify a conditional expression in btree.c. (CVS 6565)
FossilOrigin-Name: fc3a5ac2353142082fe14d47f9c2b662407ea3f7
2009-04-29 06:27:56 +00:00
drh
8ad38a7d18 Fix an out-of-order test number in blob.test. Cosmetic change. No
changes to code.  Ticket #3830. (CVS 6564)

FossilOrigin-Name: e855654283a23d903fd531162655a8c4fa01775b
2009-04-28 18:00:27 +00:00
drh
0d59d17c41 Fix asserts in hash.c so that zero-length symbols can be used. (CVS 6563)
FossilOrigin-Name: fe9f00aa369051beee09ab3d1a2e046a1f679a40
2009-04-28 17:33:16 +00:00
danielk1977
8be0245db4 When testing with TEMP_STORE=3 and the test pcache, only run 20 iterations in trans.test. Otherwise the test pcache runs out of memory. (CVS 6562)
FossilOrigin-Name: 0799b729a7fe50ee935ac3bd9f95118288d33f6e
2009-04-28 16:37:59 +00:00
drh
b82400132d Remove an unused function declaration from hash.h. (CVS 6561)
FossilOrigin-Name: fcf70bb8b8ab7682d46fa7e75338dfd8ecf472a3
2009-04-28 16:35:42 +00:00
danielk1977
2e90567890 Further adjustment to rowhash.test to account for rowid collisions. (CVS 6560)
FossilOrigin-Name: 94a23f993381412c7533878d44faa2f8e47e58ce
2009-04-28 15:48:08 +00:00
drh
8a1e594c9f Simplifications to the symbol table implementation in hash.c. For very small
symbol tables (less than 10 entries) a simple linked list is used instead
of a hash table.  Number of hash table buckets is limited to prevent large
allocations. (CVS 6559)

FossilOrigin-Name: 5c737835dec9e6038b304c198aa14337a6f23c1c
2009-04-28 15:43:45 +00:00
danielk1977
ebb329397c Have sqlite3_create_collation() return MISUSE if passed an encoding value other than SQLITE_UTF8, SQLITE_UTF16LE, SQLITE_UTF16BE, SQLITE_UTF16 or SQLITE_UTF16_ALIGNED. (CVS 6558)
FossilOrigin-Name: 7975b6f2ec7736b3656a264c2f7e7e95ce7a78e4
2009-04-28 15:35:38 +00:00
drh
a83ccca794 Do not store the zero string terminator as part of the name when holding
symbols in the symbol table. (CVS 6557)

FossilOrigin-Name: 23d67af39227aeade2ea0292e1b8844eea580993
2009-04-28 13:01:09 +00:00
danielk1977
c1f4a19bfa Another fix to the same assert as in (6555). It can also fail after a malloc error. (CVS 6556)
FossilOrigin-Name: e096f90a57f0e0d1dbeaafc72762035ca55ab803
2009-04-28 12:08:15 +00:00
danielk1977
f0d0a8dc4a Fix an assert that could fail after a parse error in expr.c. (CVS 6555)
FossilOrigin-Name: a37d1174eb80e9a09522b236afdb47283f312d06
2009-04-28 11:10:39 +00:00
danielk1977
f761f76262 Avoid changing the pager journal-mode once a write-transaction is open, even if no database pages have been modified. (CVS 6554)
FossilOrigin-Name: ad8aba3eff90d42b936e3644f10cbbd431eebad8
2009-04-28 05:27:20 +00:00
drh
1691cd4bc0 Add test cases for sqlite3_complete with an EXPLAIN QUERY PLAN on a
CREATE TRIGGER statement.  Ticket #3828. (CVS 6553)

FossilOrigin-Name: 6b86b40edadb9c9cbc0db5a43a8277434f9d7171
2009-04-28 04:51:29 +00:00
drh
e0d0f8ee4d Make sure sqlite3_open16() always zeros the db return pointer if
SQLite initialization fails. (CVS 6552)

FossilOrigin-Name: 057c7d171397e19c8f3ac2362ea45f2b4a50530c
2009-04-28 04:47:31 +00:00
drh
709915da2a Enhance sqlite3_complete() so that it understands EXPLAIN QUERY PLAN.
Ticket #3828.  Testing is done in TH3. (CVS 6551)

FossilOrigin-Name: 3ac1b15f552fe005630e43a92fffa6a4abd6675d
2009-04-28 04:46:41 +00:00
drh
51c7d86476 Bring the documenation and implementation of sqlite3_collation_needed() into
agreement.  Use a more efficient implementation of sqlite3ErrStr().
sqlite3_result_error_code() now calls sqlite3ErrStr() if no prior
error string was set. (CVS 6550)

FossilOrigin-Name: cb9af8293624da35c32077d0f46d5b0cf826dcf5
2009-04-27 18:46:06 +00:00
danielk1977
6f050aa2bf Tests for the new asynchronous IO API. (CVS 6549)
FossilOrigin-Name: 11b2564e7159168cd0815bb9bc93688586fad1e0
2009-04-25 08:39:14 +00:00
drh
4fa326564a Add another test case for the "x IS NULL" uniqueness problem of ticket #3824.
No changes to code.  This just double-checks that everything is working now. (CVS 6548)

FossilOrigin-Name: 3ceae3579bc42974865cf6fe0bc42001e786e894
2009-04-24 20:32:31 +00:00
danielk1977
70d9e9cc02 Dequote the "from" table in a FOREIGN KEY definition (affects the output of "pragma foreign_key_list). Fix for #3800. (CVS 6547)
FossilOrigin-Name: 600482d1619c07690b6517ded9655462bdab7538
2009-04-24 18:06:09 +00:00
drh
336a5300de Get rid of the special RowSet processing in where.c and move that into
clients.  Added the WHERE_DUPLICATES_OK option to eliminate an unnecessary
RowSet during DELETE with a WHERE clause containing ORs. (CVS 6546)

FossilOrigin-Name: 98606bee9e41b8969fb639fc43864e230185ca43
2009-04-24 15:46:21 +00:00
drh
46619d6787 Make sure that the optimizer realizes that an "x IS NULL" contraint does not
necessarily give a single-row result even on a UNIQUE index.  Ticket #3824. (CVS 6545)

FossilOrigin-Name: 207335fdbf992a2f5bc5982b3163a38016ba1b21
2009-04-24 14:51:42 +00:00
danielk1977
4598b8e4a1 Make selecting the asynchronous IO file-locking mode a runtime operation. Still untested. (CVS 6544)
FossilOrigin-Name: 577277e84a05707b8c21aa08bc5fc314c1ac38ac
2009-04-24 10:13:05 +00:00
danielk1977
debcfd2dcb Improve comments and documentation of the asynchronous IO VFS module. (CVS 6543)
FossilOrigin-Name: 92bc6be2a86f8a68ceded2bc08fe7d6ff23b56fb
2009-04-24 09:27:16 +00:00
shane
68d405e25a os_win.c, winOpen(), changed to handle the SQLITE_OPEN_EXCLUSIVE flag and sharing modes in the same manner as os_unix.c. Ticket #3821. (CVS 6542)
FossilOrigin-Name: 18fef3fcf61c137a89a83352f6769ed06845434a
2009-04-23 19:08:32 +00:00
shane
b1a82dbe95 Updated misc. test scripts for Windows testing with gcc/cygwin; (CVS 6541)
FossilOrigin-Name: 1e2c71596e3f7a69afc5b745c20b2e4e81bffda5
2009-04-23 18:42:04 +00:00
shane
8a0dc3b04a Remove some incorrect async tests; (CVS 6540)
FossilOrigin-Name: 03af25b3ee001c1bf3e7a3218fad6ed311c7c259
2009-04-23 18:41:25 +00:00
danielk1977
a3f065980e Move the asynchronous IO code from src/test_async.c to ext/async/. Refactor it to be a standalone module and to support windows. (CVS 6539)
FossilOrigin-Name: e71fb0fb8d83b4453c3c1e84606bf58d04926809
2009-04-23 14:58:39 +00:00
drh
ceea33217b Rework the column-cache mechanism to be more robust (and more correct).
The column-alias cache is currently disabled, (CVS 6538)

FossilOrigin-Name: dd4d67a67454a3ff13c286a2a8360c5f0432c91d
2009-04-23 13:22:42 +00:00
drh
044925be0b Eliminate the OP_VRowid opcode. The regular OP_Rowid now work for both
regular and virtual tables. (CVS 6537)

FossilOrigin-Name: ecbef45011f1f98d940b2d3492941213d9f04172
2009-04-22 17:15:02 +00:00
drh
6149526c25 Change the OP_Rowid opcode so that a deferred OP_Seek is pending, it simply
pulls the rowid from the deferred seek target and does not actually move
the cursor or do a seek.  Other where.c cleanups. (CVS 6536)

FossilOrigin-Name: 1c508a99822caa383e7e24b5d09a9bddd2ee3a00
2009-04-22 15:32:59 +00:00
drh
1b26c7ccfa Remove the rowhash object from the code. Rowset now fills its role. (CVS 6535)
FossilOrigin-Name: e963bed0fe3ce5fa32f04b930e5ed0956dc2aa47
2009-04-22 02:15:47 +00:00
drh
733bf1b1e2 Extend the Rowset object to contain all the capabilities of Rowhash in
addition to its legacy capabilities.  Use Rowset to replace Rowhash.
In addition to requiring less code, This removes the 2^32 result row
limitation, uses less memory, and gives better bounds on worst-case
performance.  The Rowhash implementation has yet to be removed. (CVS 6534)

FossilOrigin-Name: b101cf70b75c9772aaf50e0eadd0cfa37c84d193
2009-04-22 00:47:00 +00:00
danielk1977
dcc1f44020 Move RowHashBlock.nUsed to RowHash.nUsed. Fix a typo in a comment in test_async.c. (CVS 6533)
FossilOrigin-Name: 799d31d99fd18a6f99862433384e37d6747ee5b3
2009-04-21 18:20:45 +00:00
danielk1977
732dc5526b Fix a segfault that followed a malloc failure introduced by (6527). (CVS 6532)
FossilOrigin-Name: 08e71b114087cfddd36c066265982172fcb41c9a
2009-04-21 17:23:04 +00:00
drh
84fe066470 Adjust the rowhash.test module so that it recovers gracefully in the rare
event of a rowid collision. (CVS 6531)

FossilOrigin-Name: 72e1680904a354811cd2956bd57769ee2482c8bb
2009-04-21 17:13:38 +00:00
drh
cd5a9729d2 Allocate the initial RowHash object using lookaside. (CVS 6530)
FossilOrigin-Name: 9b30ab7199d8b51bdea8ec7f0410281527623673
2009-04-21 16:15:15 +00:00
drh
ade9760aea New comments and minor refactoring of rowhash.c. (CVS 6529)
FossilOrigin-Name: b8cb4f3e2473afaee7c147a6b3f0972f69391a9a
2009-04-21 15:05:18 +00:00
drh
a76409211d Remove a redundant test from sqlite3_shutdown(). (CVS 6528)
FossilOrigin-Name: 6f481ceb503c7df74d9417a5a7f019ff56261ea8
2009-04-21 12:02:56 +00:00
danielk1977
1d46146b58 Attempt to optimize virtual table queries with 'OR' expressions in the WHERE clause. (CVS 6527)
FossilOrigin-Name: f61e4cd93682fd98bea2a71d346f9eaa68454390
2009-04-21 09:02:45 +00:00
drh
8a93919082 Change the journal_mode pragma so that it always returns the current
journal mode, even on a failed attempt to change the journal mode.
Allow the journal mode to be changed as long as there is not a pending
transaction.  Ticket #3811. (CVS 6526)

FossilOrigin-Name: 419e320ae51639794335d19699f8e1189e524e7d
2009-04-20 17:43:03 +00:00
drh
e6e7ecb421 Add new tests to show that journal_mode=OFF works with locking_mode=EXCLUSIVE
as long as the journal_mode is set prior to the first transaction.
Ticket #3811. (CVS 6525)

FossilOrigin-Name: e62ac26f72224a4ba6c7dc5c32b7e4370461764d
2009-04-20 13:32:33 +00:00
drh
d2b68438a1 Clarify the documentation to make it clear that sqlite3_interrupt() does not
effect new SQL statements that are started after the running statement
count reaches zero.  Ticket #3815. (CVS 6524)

FossilOrigin-Name: 3182e8bf69eb4e5e4070930cb9c750942b1dc735
2009-04-20 12:31:46 +00:00
drh
d54a79118a Do not use deprecated interfaces internally when compiling with
SQLITE_OMIT_DEPRECATED.  Ticket #3813. (CVS 6523)

FossilOrigin-Name: 7f17956dfbf3090fd5832378e77bd83a525fed9d
2009-04-20 12:07:37 +00:00
drh
59813953a3 Speed improvements by avoiding unnecessary calls to fstat() and ftruncate(). (CVS 6522)
FossilOrigin-Name: 5b7e3a411a6f2fe296675de9467783f6625cff3f
2009-04-20 11:34:26 +00:00
drh
51898cf727 Update comments and remove unused code in btree.c. No functional changes. (CVS 6521)
FossilOrigin-Name: bd860184909b7a9cc32c59770ebcee0efdc491f0
2009-04-19 20:51:06 +00:00
drh
d1a2440d6a Make extra calls to sqlite3_shutdown() be harmless no-ops. (CVS 6520)
FossilOrigin-Name: d80822953c2d2f2fd7f6acdd3caa403c0decacc4
2009-04-19 12:23:58 +00:00
drh
0bf9f7bca4 Revise the implementation of sqlite3_initialize() slightly in order to make
it more easily testable.  The functionality should be unchanged. (CVS 6519)

FossilOrigin-Name: bb1a390a3d2f79b27e3ec2514ae00f5b22dbfb06
2009-04-17 16:54:22 +00:00
drh
52e2c35fb2 Get the behavior of SQLITE_HAVE_ISNAN right. It was reversed
in check-in (6517).  Ticket #3809. (CVS 6518)

FossilOrigin-Name: 97c6ea2368556b2a9a914ba2322085e312598b15
2009-04-17 15:18:47 +00:00
drh
cf9b1752cf Add the SQLITE_HAVE_ISNAN compile-time option which, if present, causes
SQLite to use the math library isnan() function rather than its own homebrew
implementation of isnan(). (CVS 6517)

FossilOrigin-Name: 54d23521c37938b9d98f41f5547975c469c0c8f0
2009-04-17 11:57:22 +00:00
drh
382ffd9e65 Check-in (6514) did not completely remove the obsolete test, resulting in a
segfault.  This check-in finishes the job.  Ticket #3802. (CVS 6516)

FossilOrigin-Name: c29b37ea36fe6a360807e66dffc467c66be00d38
2009-04-17 11:56:27 +00:00
drh
05800a1d17 Add NEVER and ALWAYS tags to conditionals in analyze.c that always false or
true. (CVS 6515)

FossilOrigin-Name: fbbc80eaf3bb3726b053d1050104b4ec602eb0c1
2009-04-16 17:45:47 +00:00
drh
e52204b4ce Remove obsolete test from bindxfer.tcl. Ticket #3802. (CVS 6514)
FossilOrigin-Name: b1b096171812f77082b0b63e7ab0908c82d1d8bb
2009-04-16 16:32:20 +00:00
drh
56d56f7aa7 Changes to alter.c to enable full branch coverage testing. (CVS 6513)
FossilOrigin-Name: 6a91ab08a55eacc77f69190e1126326f4da220af
2009-04-16 16:30:17 +00:00
drh
7fee360d09 Make sure the 'unixepoch' converter in the date and time functions rounds
to the nearest millisecond rather than truncating downward to the next
smaller millisecond.  Ticket #3808. (CVS 6512)

FossilOrigin-Name: e6e036b345b130c207716c4b81719b5b7c884a11
2009-04-16 12:58:03 +00:00
drh
10c081adf8 In a 3-fold compound SELECT make sure early code generation of the SELECTs
to the right do not dereference non-existant columns in SELECTs on the left. (CVS 6511)

FossilOrigin-Name: 414f340809c487901fa913026a342b19a2956c0a
2009-04-16 00:24:23 +00:00
drh
8dc09a0616 Fix the group_concat() function so that it inserts the separator string
even if the initial content strings are empty.  Ticket #3806. (CVS 6510)

FossilOrigin-Name: b83fbf15a3920755ed77dc9c91b4f00a86ddb9ac
2009-04-15 15:16:53 +00:00
shane
7a8537b4a5 Fix access violation on WinCE platforms. Ticket #3804. (CVS 6509)
FossilOrigin-Name: e203ad400dd61431b3e6b8219eb5357b6ca06561
2009-04-15 14:36:25 +00:00
drh
d3264c7cdf Mark an branch in alter.c as always false. Only run the assert() on
the sqlite3_aggregate_count() function in func.c if the
SQLITE_OMIT_DEPRECATED compile-time option is off. (CVS 6508)

FossilOrigin-Name: c0bba77ae619e709f3fb068526073a4a83cf33b6
2009-04-15 13:39:47 +00:00
drh
b818008784 Disable the temptrigger.test test script when shared cache is disabled.
Ticket #3801. (CVS 6507)

FossilOrigin-Name: feedbce8f149820d082ecde4437109cc6b6ea0e3
2009-04-15 13:07:19 +00:00
aswift
685cd6f663 nMax can be zero and subtracting 1 from an unsigned zero produces undesirable results (CVS 6506)
FossilOrigin-Name: a117d82dad82bc372bc1e3f1adb9540c1accf851
2009-04-14 18:44:38 +00:00
drh
ac80db7845 Change the sqlite3_bind_value() implementation to use a default branch on
the type switch so that there are no untested jumps in the switch. (CVS 6505)

FossilOrigin-Name: d0a8bd6a53c5da0ac6b88818f82c7f7d330b527a
2009-04-14 12:58:20 +00:00
drh
29def56019 Reimplement the sqlite3_bind_value() interface so that it works when the
value being bound comes from a different database connection. (CVS 6504)

FossilOrigin-Name: 3db0c7980668cf38165add13f833863cd00a0cfe
2009-04-14 12:43:33 +00:00
drh
9cff9dc6ae Enhancements to virtual table documentation. Comment changes only. No changes to
code. (CVS 6503)

FossilOrigin-Name: b0b2b2831cc84d57e90bf587ebed600fa72926e9
2009-04-13 14:43:40 +00:00
drh
226dba63ed Version 3.6.13 (CVS 6502)
FossilOrigin-Name: 982cc7f4e7e2d8abfc2025dfbec7c1ce8f95383b
2009-04-13 09:29:04 +00:00
drh
934c5444ed Rerun autoconf in preparation for 3.6.13. (CVS 6501)
FossilOrigin-Name: f683e222112339d1f7980276e403efda76a18ebf
2009-04-13 09:09:24 +00:00
chw
6de061ae67 updated Makefile.vxwSH4 and renamed it to Makefile.vxworks,
should now be able to support SH4 and PPC targets. (CVS 6500)

FossilOrigin-Name: e4a370c72dd3204be099a6706128507d5c06170c
2009-04-13 08:14:03 +00:00
drh
1180936671 Fix malloc5.test so it work on both 64-bit and 32-bit systems. The
::tcl_platform(wordSize) variable has to be used to adjust some memory
sizes. (CVS 6499)

FossilOrigin-Name: ea20f78edb50778c40ed7f03f894ab898f58d67c
2009-04-11 19:09:53 +00:00
drh
66fd216045 Fix an obscure problem with recovery from I/O errors while rolling back. (CVS 6498)
FossilOrigin-Name: 24ff486125b9ad62dd92314b62299093b55fe82b
2009-04-11 16:27:49 +00:00
drh
63842415bd Add a comments and an assert() to the virtual table implementation.
No functional changes. (CVS 6497)

FossilOrigin-Name: ac5d0c0aa1de687bde972fbf0db8f04508825205
2009-04-11 16:27:19 +00:00
danielk1977
e589a67f6c Fix a case where a corrupt database could cause an assert() to fail. (CVS 6496)
FossilOrigin-Name: 2c560e057e1da8a603efc36deea036f2392a4ab9
2009-04-11 16:06:15 +00:00
drh
457e621e6e Allocate a little extra scratch space for the memsubsys1 tests. The
extra space is needed in some configurations. (CVS 6495)

FossilOrigin-Name: 5484419294356b704c2c9064f36ed254875ca8c0
2009-04-11 14:46:43 +00:00
drh
1a0cc28e84 Increase the hard upper bound on the number of pcache pages in test_pcache
when the test harness is compiled for in-memory temp tables.  Some of the
test cases need to extra memory to avoid unplanned out of memory errors. (CVS 6494)

FossilOrigin-Name: 7f2d6a0bd510801e011eb075f494194d9ebf568b
2009-04-11 11:38:53 +00:00
danielk1977
1c50179332 Replace invocation of (really_finish_test) from async.test with (finish_test). Otherwise a tcl exception may be thrown when running permutations. (CVS 6493)
FossilOrigin-Name: e6465e9da3d754833c21e0fb76c16a4efd047b91
2009-04-11 10:25:03 +00:00
danielk1977
be20e8eccb In sqlite3PagerMovepage(), avoid holding a reference to page number X when calling sqlite3PcacheRekey() to move another page to page number X. (CVS 6492)
FossilOrigin-Name: 4447c94f45b8abd833eb82b67233029088fd1a54
2009-04-11 09:51:55 +00:00
drh
7950acd424 Remove more unused branches from vdbeapi.c. (CVS 6491)
FossilOrigin-Name: 447e959594970a225a9b189e7e420ba9c3eedbdb
2009-04-10 23:11:31 +00:00
drh
3e078c7afc In the async test, make sure procedures do not get renamed over top of one
another. (CVS 6490)

FossilOrigin-Name: b6430cc4297c426f89e68f180a2c50b9b1ecd8e3
2009-04-10 20:55:13 +00:00
drh
9b4ea4a53e Remove unused branches from the vdbeapi.c module. (CVS 6489)
FossilOrigin-Name: 7ae0fc7ea55dc5b5fbeef20f476a00f619bd3c5c
2009-04-10 20:32:00 +00:00
danielk1977
07a108934d Increase the error tolerance when verifying the approximate size of a pseudo-random database in backup_ioerr.test. Otherwise the test could fail depending on the PRNG seed. (CVS 6488)
FossilOrigin-Name: deda5ab35e7663ba5f30c08b16ef3393d7146816
2009-04-10 18:41:01 +00:00
danielk1977
cb25790250 Do not run io.test as part of the inmemory_journal permutation. io.test uses the tcl API to test for journal files in the file-system (which of course never exist when running with in-memory journals). (CVS 6487)
FossilOrigin-Name: 493f03bd73a15de994f69f23e9df8bb3ee4d20dc
2009-04-10 18:32:29 +00:00
drh
fe53f2e3f5 Re-enable the alt_pcache tests in permutations.test so that they run
automatically during a full regression.  Fix async.test so that it
works with the permutation.test pcacheNN test modules. (CVS 6486)

FossilOrigin-Name: 310192cc0fb56f8ffaa8e742f5600f16956212e7
2009-04-10 18:21:29 +00:00
shane
80167bf080 Fix MSVC compiler warning in vdbeaux.c. (CVS 6485)
FossilOrigin-Name: d619465e31c2366b389fea6ee2ce6b1806738a0f
2009-04-10 15:42:36 +00:00
drh
01e61eecb3 Disable the select1-15 tests when locking_mode is EXCLUSIVE. Ticket #3771. (CVS 6484)
FossilOrigin-Name: 88cefbb4a12ab7037f025141ddbe041ea82a6c61
2009-04-10 15:38:42 +00:00
danielk1977
d0f1958682 Changes to jrnlmode.test to account for in-memory temp databases. (CVS 6483)
FossilOrigin-Name: c31d4359ae056dca9e9de61ef8ceb683b92850e7
2009-04-10 15:02:43 +00:00
drh
73d34e92f4 Simplifications and additional comments on the sqlite3_get_table()
implementation.  Changes to facilitate full branch test coverage. (CVS 6482)

FossilOrigin-Name: 57e3e6b3cb54e6626bee41a084c927ee264b6d03
2009-04-10 14:27:59 +00:00
danielk1977
f7590db099 Changes to ensure that when running in shared-cache mode with a non-threadsafe build, the correct busy-handler callback is always invoked. (CVS 6481)
FossilOrigin-Name: 683e4bd74783e6e3f6cf75f9582008c7b7e02a01
2009-04-10 12:55:16 +00:00
danielk1977
2a50ff0309 Always set BtShared.db when entering the BtShared mutex. Ticket #3793. (CVS 6480)
FossilOrigin-Name: ed6620ba589ddbb6ca86f42a7652e3b019195647
2009-04-10 09:47:06 +00:00
drh
8c5d152b53 Force 8-byte alignment of sqlite3_value objects in the
sqlite3VdbeUnpackRecord() primitive.  Ticket #3777. (CVS 6479)

FossilOrigin-Name: 2cc68272b1f70701268075cfa82fa64bb2a8179d
2009-04-10 00:56:28 +00:00
drh
3c3cb6be73 Increase the version number to 3.6.13 in preparation for the next release. (CVS 6478)
FossilOrigin-Name: 9a09a47495d498a3372ead0eef5e3642a3ff30c2
2009-04-09 21:02:29 +00:00
chw
a5dc7f73f9 Provide dummy DWORD arguments to output parameters of GetDiskFreeSpace(A|W),
NULL causes access violations on Windows NT 4.0 (CVS 6477)

FossilOrigin-Name: 5350a6586cd6504a0724631e4ef46245832435f9
2009-04-09 14:27:06 +00:00
drh
0f5ea0b34c Remove misuse detection from the deprecated sqlite3_transfer_bindings()
interface.  The code was hard to test and was simply taking up space. (CVS 6476)

FossilOrigin-Name: 4cd829107cc9e94b092490aa821574492292b425
2009-04-09 14:02:44 +00:00
drh
bb77b753c5 Enhance sqlite3_shutdown() so that it automatically invokes
sqlite3_reset_auto_extension().  This is a harmless no-op if applications
are already calling sqlite3_reset_auto_extension() prior to sqlite3_shutdown().
And it prevents possible memory corruption if they do not.  So it works
either way.  Most of the changes are to the test cases. (CVS 6475)

FossilOrigin-Name: 0c41f7cff4f6ffb9321f6f6b6ef3e431b750d41a
2009-04-09 01:23:49 +00:00
drh
c6c7fd51c5 Simplify the implementation of the columnName() function in vdbeapi.c.
This is a code cleanup only - no behavior changes. (CVS 6474)

FossilOrigin-Name: 0628f5864f8cc035b41bbe644bd8ec8fb43c70ce
2009-04-08 23:05:28 +00:00
drh
2e79c3d51c Add an assert() to the implementation of count(*) that checks the
correct operation of the sqlite3_aggregate_count() function. (CVS 6473)

FossilOrigin-Name: f322be3833c4a938ee7d9e4bcfd5decaca57db0b
2009-04-08 23:04:14 +00:00
drh
874ba04c73 Reconfigure the default case for the printf switch in order to improve
branch coverage. (CVS 6472)

FossilOrigin-Name: 3cc79162dbdbce9d08bb28942128780277101e0d
2009-04-08 16:10:04 +00:00
drh
bc6160b0d6 Remove a pair unnecessary conditions from printf.c. The "db" parameter is
now required for sqlite3MPrintf(). (CVS 6471)

FossilOrigin-Name: 6fe8b5d70247d9c6b70dd482db3990986be97e69
2009-04-08 15:45:31 +00:00
drh
12ffee8cb9 Minor refactoring of the expression-compaction logic for clarity of
presentation.  New comments added.  The EXPRDUP_DISTINCTSPAN flag is
removed as obsolete. (CVS 6470)

FossilOrigin-Name: 44ded2ea67374f187a111df69c3f51f866735400
2009-04-08 13:51:51 +00:00
drh
0a9aa2253c Do not attempt to walk a TokenOnly or SpanOnly expression tree node.
Ticket #3791. (CVS 6469)

FossilOrigin-Name: 8362d883248f00a8ec7294bf027fd19758aec5f2
2009-04-08 12:21:30 +00:00
drh
7e3ff5d84e Add a comment to printf.c - no changes to code. (CVS 6468)
FossilOrigin-Name: ee5a4a0e595a7b916db7d55d30ddfda0a8d40d90
2009-04-08 11:49:42 +00:00
drh
65a73bad9e Fix the sqlite3_unlock_notify() interface so that when the callback is NULL
it simply cancels any outstanding callbacks. (CVS 6467)

FossilOrigin-Name: 9ccfcb760745df28b04e746355b1b6dec49a93de
2009-04-07 22:06:57 +00:00
drh
695c0266b7 Remove two unused tests from the integrity_check pragma logic. (CVS 6466)
FossilOrigin-Name: 22999d31418aa9ecb17ab5d135b206b967889614
2009-04-07 22:05:43 +00:00
danielk1977
5d189858e9 Fix an incorrect assert in btree.c. (CVS 6465)
FossilOrigin-Name: 2c1f59834ab7a16066ee12cb8a8342d438c23ce9
2009-04-07 14:38:58 +00:00
danielk1977
2943c37228 Fix compilation and testing when SQLITE_OMIT_TRIGGER is defined. Ticket #3786. (CVS 6464)
FossilOrigin-Name: 277dace43d51fbc79c7a62fc841c150ecd8d0823
2009-04-07 14:14:22 +00:00
drh
85799a4715 Only enable WHERE-tracing when both TEST and DEBUG are enabled. (CVS 6463)
FossilOrigin-Name: 55b93649258204797f56a58322cf31b564469633
2009-04-07 13:48:11 +00:00
danielk1977
64aca19127 Change "... myfunction() { ... }" to "... myfunction(void) { ... }" in a few pla
ces. Ticket #3783. (CVS 6462)

FossilOrigin-Name: 6f79e6ae0d30948db4ba26bb5b448c15c470464f
2009-04-07 11:21:28 +00:00
danielk1977
c4d201c632 Have OP_IdxRowid handle the case where the index entry it is reading from is deleted. (CVS 6461)
FossilOrigin-Name: cdad29b582ca832f6a717d8a6e3f3bca424e84a4
2009-04-07 09:16:56 +00:00
chw
78a1318b2e Compile fixes and improvements for vxwork: fixed deadlock in semClose,
detect if fcntl is usable, fall back to named semaphores if not. (CVS 6460)

FossilOrigin-Name: efd0682b7e78acc4242cf257fc246350fc29b5c8
2009-04-07 05:35:03 +00:00
drh
1086172f7d Remove an unused test for EXPLAIN-mode in the PRAGMA processing. (CVS 6459)
FossilOrigin-Name: 909683b3428784ce91d222ccf887033d86250bd5
2009-04-07 00:49:16 +00:00
drh
081a166489 Always enable WHERE-tracing on a test build.
Oops - accidentally included a debugging change to pragma.c in 
this check-in.  The real fix for the pragma problem is in the
following checking. (CVS 6458)

FossilOrigin-Name: 567cf90b038a37da93d02954ef8f9f435dcc9a38
2009-04-07 00:43:28 +00:00
drh
577d674f1a It is OK for a unix file descriptor to be zero. It just can't be negative.
Adjust an assert accordingly.  Ticket #3781. (CVS 6457)

FossilOrigin-Name: 47aa7eb0e047e30bbf09cb08c1e48c61f8d9861c
2009-04-07 00:35:20 +00:00
danielk1977
ef165cedeb Test cases and minor code changes to increase coverage of btree.c. (CVS 6456)
FossilOrigin-Name: def3a016914f683818b5f013ec4efecbb8fd4c0d
2009-04-06 17:50:03 +00:00
drh
1a25f11ccc Updates and clarification to the documentation of the sqlite3_temp_directory
global variable.  No changes to code. (CVS 6455)

FossilOrigin-Name: aea99c572a69a00b709f0de816ea16488d899375
2009-04-06 15:55:03 +00:00
drh
6da861be0e Allow "default" to be a keyword used by PRAGMA statements. (CVS 6454)
FossilOrigin-Name: ed99d2d97f11784dda0f61f8e7d0eb5ca1bca371
2009-04-06 14:16:43 +00:00
drh
69a442ef1f Make sure the reverse_unordered_selects pragma works even on unindexed
tables that are queried without a WHERE clause (CVS 6453)

FossilOrigin-Name: d8c6b28a734fccbbbd567d98ffa7e6557280f737
2009-04-06 12:26:57 +00:00
drh
3c6d9a48e0 Check-in (6450) introduced the possibility of calling memset() with a
negative 3rd argument.  This fixes that bug.  Ticket #3777. (CVS 6452)

FossilOrigin-Name: 8ca612c42e0de3ef5b2f92d80a56db1bef34b1c6
2009-04-06 11:11:42 +00:00
drh
02368c983f Fix a segfault in Lemon that occurs if the input grammar does not define
a type for tokens.  This does not effect SQLite since the SQLite grammar
does define a type for tokens. (CVS 6451)

FossilOrigin-Name: 4424aee958b2e764a61141b5c66c063e36ed5aae
2009-04-05 15:18:02 +00:00
drh
ea598cbd8d Additional code to make sure and to assert that memory allocations have
8-byte alignment.  Ticket #3777. (CVS 6450)

FossilOrigin-Name: 208382e032134d9c78fe1cfcb98ce9defb4e3e26
2009-04-05 12:22:08 +00:00
drh
3c71364643 Allow the journal_size_limit to be larger than 2147483647 bytes. (CVS 6449)
FossilOrigin-Name: 81931259611ef10de731ea0e38cee92eb8629733
2009-04-04 16:02:32 +00:00
drh
5d73854b27 Allow the journal_mode for in-memory databases to be either OFF or MEMORY,
not just MEMORY. (CVS 6448)

FossilOrigin-Name: 11c77f4c2c2beee5267ea6e2f1a4bb845531b42c
2009-04-04 15:53:47 +00:00
drh
eb0d629257 Clarify the meanings of the SQLITE_SYNC_NORMAL and SQLITE_SYNC_FULL flags
passed into the xSync method of the VFS.  Comment changes only - no changes
to code. (CVS 6447)

FossilOrigin-Name: c47aeb37a1c054a8e0444b95e29cb332599af2d8
2009-04-04 14:04:58 +00:00
drh
0d1d5abffa Remove a blank line in sqlite.h.in that was preventing the
SQLITE_LOCKED_SHAREDCACHE constant appears in the automatically-generated
documentation.  Ticket #3775. (CVS 6446)

FossilOrigin-Name: 65f9d3b948cd6ed4728ab49833b9f2fca96563a2
2009-04-03 12:12:58 +00:00
drh
07758962f5 Use integer rather than floating point compuations in converting from julian
day number to unix-time to avoid round-off errors on Borland compilers.
Ticket #3769. (CVS 6445)

FossilOrigin-Name: c26f97bd857f3ddb15e63216cdd4a00e06d8eac8
2009-04-03 12:04:36 +00:00
drh
ada2ee0d8b Fix the PRAGMA parser so that it can accept negative numbers in parentheses,
like the syntax diagrams say it should be able to. (CVS 6444)

FossilOrigin-Name: 286e83178ddcd2efe2888697bcf8cc95ccdef880
2009-04-03 01:43:57 +00:00
drh
818e39ad35 Make sure count(*) works on the sqlite_master table of an empty database.
Ticket #3774. (CVS 6443)

FossilOrigin-Name: e0c1a780f5a356c48b2a4cc66fab988fe441722f
2009-04-02 20:27:28 +00:00
drh
ce4869f893 Make sure the VACUUM statement locks down the page_size and auto_vacuum
modes after it runs.  Otherwise, pragmas might change these settings on
a populated database, resulting in problems. (CVS 6442)

FossilOrigin-Name: 85e6a4740d6db731c8c35a331031c346e9189c27
2009-04-02 20:16:58 +00:00
drh
860e077a7a Fix the sqlite3_prepare() family of interfaces so that they zero the *ppStmt
value even on an SQLITE_MISUSE return.  Make it clear in the documentation
that the ppStmt parameter cannot be zero. (CVS 6441)

FossilOrigin-Name: 23bf9f266559603e37b2703715eaf8ef5af6bb17
2009-04-02 18:32:26 +00:00
danielk1977
fa542f1fc8 Fix a problem causing the BtShared.isPending flag to be cleared to early. Also coverage improvements for btree.c. (CVS 6440)
FossilOrigin-Name: 8f1423445b29a5f52ed907de6db82128a96ebfe2
2009-04-02 18:28:08 +00:00
danielk1977
e1fb65a0b8 Ensure the required VerifyCookie/Transaction/TableLock opcodes are added for "x
IN (SELECT c FROM t)" expressions. Ticket #3771. (CVS 6439)

FossilOrigin-Name: 058a2f20930d7707c03c3c27db8e761d5657ee46
2009-04-02 17:23:32 +00:00
drh
de46798569 Fix a couple of harmless nuisance warnings. (CVS 6438)
FossilOrigin-Name: 53dac0a455b9a822f710c257711e8d319060cf84
2009-04-02 17:22:41 +00:00
drh
e8902a70fe Disable the query flattening optimization when the subquery is a compound
query with an ORDER BY clause.  Ticket #3773 shows why that combination
does not work. (CVS 6437)

FossilOrigin-Name: 23f90d50737a36ebd17152dd4667948ce7049967
2009-04-02 16:59:47 +00:00
drh
3034e3d364 Change the way that the random() SQL function prevents the maximum
negative integer so that it is testable. (CVS 6436)

FossilOrigin-Name: 995f2b9b1031fadc85e179701536b9dd4153654b
2009-04-02 14:05:21 +00:00
drh
d27135ad82 Use ALWAYS and NEVER macros on unchangeable conditions within func.c. (CVS 6435)
FossilOrigin-Name: eb65e64e7ed5edbe506365971d4d81ea037098d3
2009-04-02 13:36:37 +00:00
drh
27e62dbedd In the built-in SQL function implementations, improve some comments, fix
an off-by-one error in detecting over-size strings, and add testcase()
macros to verify that boundary values have been tested. (CVS 6434)

FossilOrigin-Name: 868a487f5fd7c795e04a08de36a85ba1e06bc8c6
2009-04-02 10:16:17 +00:00
drh
ef31c6aa97 Enforce the run-time sqlite3_limit() length limit on zeroblob(), not just
the compile-time SQLITE_MAX_LENGTH limit. (CVS 6433)

FossilOrigin-Name: a04f9e7959325da18f66a1aa4ead1c50993807cb
2009-04-02 09:07:12 +00:00
drh
64f798dddc Increase test coverage of bitvec.c slightly. Fix the line length on a
comment in bitvec.c. (CVS 6432)

FossilOrigin-Name: ca3aa3ba7d751be1c2bcd100a203cd9c794a6cef
2009-04-01 23:49:04 +00:00
drh
2206a2b6ab Mark untestable branches of memjournal.c as such. Reduce the size of a
single block allocation to a power of two.  Reenable the inmemory_journal
permutation test. (CVS 6431)

FossilOrigin-Name: 05c182a5db9fa96f2d588dd884ce77916b0e60e4
2009-04-01 23:09:43 +00:00
drh
6eb41523f1 Fix the strftime() function so that the %s format can handle dates outside
of the range of 1901 to 2038.  Ticket #3769. (CVS 6430)

FossilOrigin-Name: a95b843a9251ca9f9a23e8b67c2126f4c297a534
2009-04-01 20:44:13 +00:00
drh
4b2b8b705d Change an unreachable error condition test to an assert() in rowset.c. (CVS 6429)
FossilOrigin-Name: 36115e4073528f03253dd94fadf3954522c0dfb9
2009-04-01 19:35:55 +00:00
danielk1977
295dc10573 Remove an unreachable branch from lockBtree(). Add comments. (CVS 6428)
FossilOrigin-Name: 859792958b4d4a3623d68526ff773f778bdf3f0d
2009-04-01 19:07:03 +00:00
drh
aed382f9f1 Fix a bug in the sqlite3Utf16ByteLen() function so that it computes the
correct length even for strings that contain surrogate pairs.
Ticket #3766. (CVS 6427)

FossilOrigin-Name: 766bb7e59c28884e40ce13e3fc55c870d06d7e34
2009-04-01 18:40:32 +00:00
danielk1977
856cc0fde9 Test that two database connections that use different VFS implementations may not share a cache. (CVS 6426)
FossilOrigin-Name: 3a92c95644ead7c4728ffec1ec70676663518188
2009-04-01 18:25:54 +00:00
danielk1977
20c6cc2b1b Remove the unused SQLITE_Vtab flag. (CVS 6425)
FossilOrigin-Name: fdd78962fcb988edfb4147394045fc5d3944c620
2009-04-01 18:03:00 +00:00
danielk1977
d217e6f16d In pageReinit() in btree.c, only reinitialize a page if there are one or more references to it, not including the transient reference held by pager.c. This was always the intent. (CVS 6424)
FossilOrigin-Name: 0c5a7d1117cfb322d1c89da89e8887b0bb091602
2009-04-01 17:13:51 +00:00
drh
769e97e032 Remove dead code from the UTF conversion routines. Fix a bug in
sqlite3_prepare16_v2() in which an out-of-memory error fails to
set the statement return pointer to NULL. (CVS 6423)

FossilOrigin-Name: 94e2f815ebb38981a2226d8aed9f3731f8833f7c
2009-04-01 16:33:37 +00:00
danielk1977
6011a75c0c Remove an unreachable branch from allocateSpace() in btree.c. Add comments and asserts to the same function. (CVS 6422)
FossilOrigin-Name: f8e15a542df67fd9dc1c91c7d9e1c4df59acb82b
2009-04-01 16:25:32 +00:00
danielk1977
5b413d785f Add some assert() statements to querySharedCacheTableLock(). (CVS 6421)
FossilOrigin-Name: 3e3b5e861aeff2e4ef568c422236fdf7fa22bed3
2009-04-01 09:41:54 +00:00
vapier
faa68dbb7d add a sanity check to make sure the configure script and VERSION file are always in sync (CVS 6420)
FossilOrigin-Name: 1b9da6d73f603e66d078463c3571dda86ceedfb3
2009-04-01 07:38:31 +00:00
vapier
051cd806f1 update configure script so it has proper VERSION in it (CVS 6419)
FossilOrigin-Name: ce683cbd329eab45abb6f97f677f560b0fd1cdb6
2009-03-31 23:29:15 +00:00
drh
f6023ecae6 Version 3.6.12 (CVS 6418)
FossilOrigin-Name: 0db862a23aa4aae949d5cd90ad395a7f073d7fb8
2009-03-31 13:16:55 +00:00
shane
b08a67a772 Fix compiler warnings from gcc and MSVC; Correct typo in select.c; (CVS 6417)
FossilOrigin-Name: 768514179a63783c4e70b931d1697403c04bedf5
2009-03-31 03:41:56 +00:00