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
drh
86655a1d2a
Make sure a ROLLBACK that follows an incremental vacuum works. Ticket #3761 . (CVS 6416)
...
FossilOrigin-Name: 8c1d0c6ad9646816eb8ca15b7df4e79b9b1b59ee
2009-03-31 02:54:40 +00:00
drh
8711c7d62e
Remove two unused lines from pcache.c. (CVS 6415)
...
FossilOrigin-Name: d5cab05c9ecbc5cb5e9ed658a55c35434717e969
2009-03-31 01:32:18 +00:00
drh
2929db8167
Added a test case for ticket #3672 . (CVS 6414)
...
FossilOrigin-Name: 7f40576dd76cb67f5248739a0ef1fbe496a3b42a
2009-03-31 00:50:35 +00:00
danielk1977
f4027782b0
Fix a case where a pointer map page was not being journalled before a file truncation that occurs as part of an incremental vacuum. (CVS 6413)
...
FossilOrigin-Name: c5890935a0247090162feda73cfea85012317050
2009-03-30 18:50:04 +00:00
drh
5e8d8878fe
Add a comment to the pageReinit() routine explaining why the return code from
...
sqlite3BtreeInitPage() is ignored. Comment change only - no changes to code. (CVS 6412)
FossilOrigin-Name: 10f605be8c92ff94625a0da0e23b2ffd55ec7509
2009-03-30 17:19:48 +00:00
danielk1977
5be31f519b
Modify integrity-check to prevent a buffer overread when dealing with a corrupted database. (CVS 6411)
...
FossilOrigin-Name: 3c9097f19adae071a12e1114f64993d0c1da1163
2009-03-30 13:53:43 +00:00
drh
a111577b6b
Make sure recursive calls to winOpen() preserve the pVfs pointer.
...
Fault found while testing a mingw build in VMWare. (CVS 6410)
FossilOrigin-Name: 18b44f0df3d75689fb5cee20120eb3c6ae5882b3
2009-03-30 13:04:17 +00:00
drh
52b9c53fa7
Avoid calls to newer TCL interfaces in the test logic. This helps the
...
TCL test harness compile without warnings and link when using older versions
of the TCL library. (CVS 6409)
FossilOrigin-Name: 1ad176375746d680225d7ecddca54bc281b1556d
2009-03-30 12:56:52 +00:00
drh
5c905d6e91
Avoid all use of the "LL" suffix for long-long integer literals.
...
Ticket #3759 . (CVS 6408)
FossilOrigin-Name: 7ef36935424013a1b211906620954a97ffe08de7
2009-03-30 12:42:45 +00:00
drh
b71c1751dc
Display a warning that the notify2-3 test sometimes fails on single-core
...
machines. (CVS 6407)
FossilOrigin-Name: ab7c718dec56859c51bfb0b1c1d70a7c84feffd1
2009-03-30 11:59:30 +00:00