drh
673299b772
Initial attempt at defining the sqlite3_initialize() and sqlite3_shutdown()
...
interfaces. (CVS 5198)
FossilOrigin-Name: 220bfd1f5cef0dfa8b800faa814ad4dc1456ced4
2008-06-09 21:57:22 +00:00
shane
1f9e6aac5f
Moved declaration of int nPage; to top of block to silence picky compilers (MSVC). (CVS 5197)
...
FossilOrigin-Name: 120bffff747592f1ab6ed02713a712cc74c12528
2008-06-09 19:27:11 +00:00
danielk1977
55edca5c17
Add test file incrblob2.test to test opening two blob handles on a single database blob. (CVS 5196)
...
FossilOrigin-Name: c1d877feb530b5cdaad55da3dbbb7c2596a10c49
2008-06-09 15:51:26 +00:00
danielk1977
ad0132dff1
Change the signature of sqlite3PagerPagecount() so that it can return an error code. (CVS 5195)
...
FossilOrigin-Name: e9f01c01866d302d81bf9ebc484ea6351cbc0f60
2008-06-07 08:58:22 +00:00
danielk1977
8162054b44
Do not call xSync() from zeroJournalHdr() if the Pager.noSync flag is set (i.e. for temp files). (CVS 5194)
...
FossilOrigin-Name: 9f5cbe29226151113e4565fcf8170317afe1b8c6
2008-06-07 05:19:37 +00:00
danielk1977
0f01fdae33
Avoid attempting to delete the journal file of a temporary pager when closing the pager. It will be deleted automatically by the OS layer. (CVS 5193)
...
FossilOrigin-Name: de8b87d65a85c4dabe53281092d9a23555a8e2d6
2008-06-06 16:14:02 +00:00
danielk1977
bcb97fe95e
Add the xGetLastError() member function to the sqlite3_vfs structure. It is neither called nor implemented at this point. (CVS 5192)
...
FossilOrigin-Name: b8f1da52c303de20d40aa20a7a031728d5d69af5
2008-06-06 15:49:29 +00:00
drh
2eb95377ef
Remove the subroutine return stack from the VDBE. Return addresses
...
for subroutines are now stored in registers. (CVS 5191)
FossilOrigin-Name: ef1956eebcaf5aca51af8c3b406b1fd4b1f391a7
2008-06-06 15:04:36 +00:00
danielk1977
17b90b5316
Remove the xGetTempname() method from the vfs structure. Temp files are now opened by passing a NULL pointer as the filename to xOpen(). (CVS 5190)
...
FossilOrigin-Name: 5173b3e816c7eb711cd21a9068bbafb9ebb7cff1
2008-06-06 11:11:25 +00:00
danielk1977
4b5255ac31
Reorganize some of the code that detects expression trees with a depth greater than EXPR_MAX_DEPTH so that they are detected earlier. This further reduces the opportunities for stack overflow. (CVS 5189)
...
FossilOrigin-Name: 16d4c53a8e4d3cfc1abac3b8bb44d8bfd9471e32
2008-06-05 16:47:39 +00:00
danielk1977
861f74563d
Modify the signatures of the sqlite3_vfs.xAccess and sqlite3_vfs.xCheckReservedLock functions. (CVS 5188)
...
FossilOrigin-Name: 4226ac54beea1b58de8ab7b9d768d999f50438a6
2008-06-05 11:39:11 +00:00
drh
0d287cf775
Fix another typo in the rtree README file. (CVS 5187)
...
FossilOrigin-Name: 9ab87b7b0d0195787f1527b5be1475fb89330f08
2008-06-04 15:09:16 +00:00
drh
72e87f44d0
Fix a bug in the R-Tree documentation. (CVS 5186)
...
FossilOrigin-Name: bb445a4b1fe43d7b3e8546a6510f4e3c3ecb500b
2008-06-04 14:20:09 +00:00
danielk1977
b53e496095
Add "pragma journal_size_limit", used to limit the space consumed by persistent journal files left in the file-system after a transaction has concluded in exclusive (or journal_mode=persist) mode. (CVS 5185)
...
FossilOrigin-Name: 5c59f469d0321c6a2e702ca2c61db012f63aeecc
2008-06-04 06:45:59 +00:00
danielk1977
53a4ddf7c4
Ensure that vacuum3.test closes all opened database connections. Fix for #3157 . (CVS 5184)
...
FossilOrigin-Name: 654e3b3de8ddeba3e31e9677ec4086e9f73c3598
2008-06-03 07:34:09 +00:00
danielk1977
57f41a76db
Avoid passing a null pointer to sqlite3SetString in sqlite3RunParser. Fix for #3155 . (CVS 5183)
...
FossilOrigin-Name: 03b5e4581a075179c85e8c16b16fd24c151294d3
2008-06-02 13:00:33 +00:00
shane
21e7febffd
Fix typos in comments in vdbe.c. (CVS 5182)
...
FossilOrigin-Name: 0613569424995207c600279c0d2337d5d5a3658c
2008-05-30 15:59:49 +00:00
shane
236ce975fc
Fix typos in comments in sqlite.h.in. (CVS 5181)
...
FossilOrigin-Name: 47956f8ee997113a1765d27009504143e518cc69
2008-05-30 15:35:30 +00:00
drh
909626d479
Fix typos in comments in where.c. (CVS 5180)
...
FossilOrigin-Name: 7cadb223cb79387a7def7762dc9e42028d14baf3
2008-05-30 14:58:37 +00:00
shane
a51269601a
Consolidated inline assembly versions of "hwtime()" into hwtime.h. Provided MSVC version. Modified code for consistent use of hwtime(). Changed implementation to use sqlite_uint64 and sqlite_int64 instead of unsigned long long int and long long int for MSVC compiler support. (CVS 5179)
...
FossilOrigin-Name: 19f5f571dd09c91b6e6a3f82857f54bd30791c03
2008-05-29 20:22:37 +00:00
shane
9bcbdad298
Consolidated inline assembly versions of "hwtime()" into hwtime.h. Provided MSVC version. Modified code for consistent use of hwtime(). Changed implementation to use sqlite_uint64 and sqlite_int64 instead of unsigned long long int and long long int for MSVC compiler support. (CVS 5178)
...
FossilOrigin-Name: 9883b406ce24eae93942ee5e6aab33fb6b05329f
2008-05-29 20:22:37 +00:00
drh
174edc6477
Fix cosmetic issues spotted while working on ticket #3146 (CVS 5177)
...
FossilOrigin-Name: 5f6eab65dba421a736659a6673a51a0e487d68ac
2008-05-29 05:23:41 +00:00
shane
712d6f9dad
Moved check and define for OS_WINCE from os_win.c to os.h (with the other OS_* defines). This allows OS_WINCE to be available for mutex_w32.c which is included earlier than os_win.c in the almagamation. (CVS 5176)
...
FossilOrigin-Name: ad6a782e7c408f6c3ebff5f2715c629b75c8002d
2008-05-29 03:54:26 +00:00
drh
c9ded4c62e
When initializing the sqlite_sequence entry for an AUTOINCREMENT table,
...
make sure the value is an reasonable integer even if the initial insert
failed. Ticket #3148 . (CVS 5175)
FossilOrigin-Name: 7e6847852d4517b1d14bebb8f0ae4d938b0b6f6d
2008-05-29 03:20:59 +00:00
drh
bfdc754f65
Fix an obsolete comment on the OP_Rowid opcode in the VDBE. (CVS 5174)
...
FossilOrigin-Name: 0d55328e680e23aae36d8f32a05aa3815393ac1d
2008-05-29 03:12:54 +00:00
shane
a6f6d20568
Omit declaration for functions that are only used by asserts if asserts aren't being used (NDEBUG). (CVS 5173)
...
FossilOrigin-Name: 5afc445a0e49def38f198455ffce9266fc8724ad
2008-05-29 03:01:23 +00:00
shane
afdd23a47d
Unused functions in testfixture.exe with certain defines. (CVS 5172)
...
FossilOrigin-Name: 5e3ff1bb37f7fbdc9b1414232bd78f096f89eced
2008-05-29 02:57:47 +00:00
shane
75998ab3d9
sqlite3OsDl*() APIs can be omitted if SQLITE_OMIT_LOAD_EXTENSION defined. (CVS 5171)
...
FossilOrigin-Name: 7c51a97dc11f20f7323a9dc5c04a3b84380cf8fb
2008-05-29 02:52:59 +00:00
shane
7bc71e5e82
Use %llx instead of %x for 64 bit values (this only affects a debugging statement). (CVS 5170)
...
FossilOrigin-Name: c81efc97bca58ebbd9500f990f7e45d133e1bd0b
2008-05-28 18:01:44 +00:00
shane
ca57b87efe
Update makefile.in so that makefiles generated by configure correctly copy in rtree source files to tsrc. (CVS 5169)
...
FossilOrigin-Name: e015fa44586b2444c78da413af50787e2690046e
2008-05-28 17:31:17 +00:00
danielk1977
7dc89e6514
Add another test case to vacuum3.test. (CVS 5168)
...
FossilOrigin-Name: d895e85e2f9b595e58562d57226404f72db89a60
2008-05-28 16:00:43 +00:00
danielk1977
b388c41552
Add a test to vacuum3.test to try to trick sqlite into using the wrong database page-size. Turns out there was no problem. (CVS 5167)
...
FossilOrigin-Name: 281589a22fa481b1dfcae69fc124458d240a0ae1
2008-05-28 14:08:17 +00:00
drh
0224d26d37
Allow the SQLITE_MAX_EXPR_DEPTH compile-time parameter to be set to 0 in
...
order to disable expression depth checking. Ticket #3143 . (CVS 5166)
FossilOrigin-Name: 5ceef40e397fc535173996404345b93f695e8cac
2008-05-28 13:49:34 +00:00
shane
1ca0ed4692
In test3.c, use type 'u32' instead of 'unsigned int' to remove a warning/error from native x86_64 compile. (CVS 5165)
...
FossilOrigin-Name: 02447e4e47659d70f014529e9baa3bf8ff75844c
2008-05-27 20:17:00 +00:00
shane
b8109ad375
Updated to use localtime_s() in Windows build environments that support it. Ticket #3126 . (CVS 5164)
...
FossilOrigin-Name: 1518827e48bc3a259b6079a5a4b8dca47b265172
2008-05-27 19:49:21 +00:00
shane
3615b5338b
Explicitly typedef Pgno as 'u32' instead of 'unsigned int' to remove a few warnings/errors from native x86_64 compile. (CVS 5163)
...
FossilOrigin-Name: b5fd8a239d787a126f775101760737781751f56e
2008-05-27 18:11:44 +00:00
drh
4b4f780188
Fix a bug in rtree that occurs when too many constraints are passed
...
in on a query. (CVS 5162)
FossilOrigin-Name: 54b84a3ddba9d27814c2f613dd197f691ac549a4
2008-05-27 00:06:02 +00:00
drh
9f86ad2354
Use %w instead of %q when constructing shadow table names for rtree. (CVS 5161)
...
FossilOrigin-Name: 78f4ba974d9b768b62391d8cd2ed407d49584cb8
2008-05-26 20:49:02 +00:00
drh
58f1c8b773
Update the amalgamation builder to incorporate the RTREE extension. (CVS 5160)
...
FossilOrigin-Name: aa8eba3360c31182f5238e96b83a382374f40fab
2008-05-26 20:19:25 +00:00
danielk1977
ebaecc148f
Import 'rtree' extension. (CVS 5159)
...
FossilOrigin-Name: b104dcd6adadbd3fe15a348fe9d4d290119e139e
2008-05-26 18:41:54 +00:00
drh
02a50b709c
Fix the LIKE query optimizer so that it works with LIKE patterns
...
ending in '@%' on NOCASE columns. Ticket #3139 . (CVS 5158)
FossilOrigin-Name: 33548744369643cc8843b74ad1fc1b7d5988d7a4
2008-05-26 18:33:40 +00:00
shane
26b340369e
Fixed various typos, spelling, grammar, and formatting mistakes. Ticket #3124 . (CVS 5157)
...
FossilOrigin-Name: 77d5a7aa1c7ea715298228ed2dbd0497cacbd0e4
2008-05-23 17:21:09 +00:00
drh
4837f53121
Add a test case of preparing a statement with an nBytes parameter of 0
...
and where the previous byte of the string is zero. Ticket #3134 . (CVS 5156)
FossilOrigin-Name: 846a69acb59403438696000b4ffd588ab42b2f95
2008-05-23 14:49:49 +00:00
drh
d2d88bbdec
Do not references zSql(-1) if nBytes==0 in sqlite3_prepare().
...
Ticket #3134 . (CVS 5155)
FossilOrigin-Name: 2d2c53e5058412a5f484ac2ca5bcef596aed2a7b
2008-05-23 14:32:18 +00:00
danielk1977
131c8bc0c2
Ensure that the db.mallocFailed flag is cleared before sqlite3_errmsg16() returns. (CVS 5154)
...
FossilOrigin-Name: 0d47653a3c39b7cd41c7e6edd8c4b4543658412d
2008-05-22 13:56:17 +00:00
drh
80105af21b
Add the "volatile" keyword to variables in the Pager structure used for
...
synchronization when memory management is enabled. (CVS 5153)
FossilOrigin-Name: 25b9f3b9b2d996ab4582b22b695c4dbd94d09cc7
2008-05-21 15:38:14 +00:00
shane
0c6844e685
Update sqlite3_open*() documentation on shared cache/filename matching relationship. Ticket #3132 . (CVS 5152)
...
FossilOrigin-Name: 235e384eca65d5007e8e0c440904eb254f9b976a
2008-05-21 15:01:21 +00:00
drh
e63b2c215e
Fix the VACUUM command so that it does not modify the changes counts
...
reported by sqlite3_changes() or sqlite3_total_changes(). Update documentation
on sqlite3_changes() and sqlite3_total_changes() to state that
"DELETE FROM table" records a change count of zero. (CVS 5151)
FossilOrigin-Name: f5d61d7d982b58accaf33df4362ce4a5eb79307e
2008-05-21 13:44:13 +00:00
pweilbacher
8407f0eb3e
Fix OS/2 compilation for pre-C99 compilers. (CVS 5150)
...
FossilOrigin-Name: de8e67182d8f9d1f0b215da93a396b9467604a50
2008-05-20 19:08:53 +00:00
drh
282c8e5cf3
Corrections to the documented behavior of sqlite3_last_insert_rowid().
...
(This change is unrelated to the problem reported by Bram de Jong. That
comes next.) (CVS 5149)
FossilOrigin-Name: 894085a59cdc60c34c8a3eb560d98bcb4a087cb1
2008-05-20 18:43:38 +00:00