danielk1977
474b7cc785
Coverage testing for balance_quick() and balance_deeper(). (CVS 5382)
...
FossilOrigin-Name: 491f8f9613d2b886acad2ab8f631a4ec61ad698d
2008-07-09 11:49:46 +00:00
drh
e49b146f30
Additional test coverage in select.c and expr.c. (CVS 5381)
...
FossilOrigin-Name: c6cf08477cc4d622a05ad6706cb9418cf7eea432
2008-07-09 01:39:44 +00:00
drh
a9671a22b3
Remove obsolete code from select.c, including the "affinity" parameter
...
to the sqlite3Select() module. (CVS 5380)
FossilOrigin-Name: cbd3c1585b7a8f8042aa1448fe1be87de056c41a
2008-07-08 23:40:20 +00:00
pweilbacher
96d9cf064b
Handle sqlite3_temp_directory on OS/2. (CVS 5379)
...
FossilOrigin-Name: 9da0b32c8c55b41cbcb4eb635c51348072101ea9
2008-07-08 22:34:06 +00:00
shane
1fc4129df7
Added macros to convert between 32-bit ints and 64-bit ptrs to avoid compiler warnings. (CVS 5378)
...
FossilOrigin-Name: 6cdb6841ff4683e424ef394733da9c24f5602570
2008-07-08 22:28:48 +00:00
shane
c6f66c5349
Added test_mutex.c (for testfixture) to input file for configure script. (CVS 5377)
...
FossilOrigin-Name: bfca089dbfa742c5ba3a530f61b5e979935d127f
2008-07-08 22:15:49 +00:00
pweilbacher
7f6358b4f5
make OS/2 VFS functions static (CVS 5376)
...
FossilOrigin-Name: b40d9496d03b16a25c164bbb694860539f77cbc3
2008-07-08 19:46:24 +00:00
drh
c8c0f8fc85
Fix a bug in where.c introduced by check-in (5373). (CVS 5375)
...
FossilOrigin-Name: 1ed98f9e617fb422efc37c4a3a5c5f0702467868
2008-07-08 19:45:02 +00:00
drh
f089aa459e
Completely rework the sqlite3SetString() primitive so that it honors the
...
SQLITE_LIMIT_LENGTH and avoids the use of strlen(). (CVS 5374)
FossilOrigin-Name: 8ed04b1e26a55306e4baf3e93fb084514134d603
2008-07-08 19:34:06 +00:00
drh
0880a74633
Improved testing of the min/max optimization. (CVS 5373)
...
FossilOrigin-Name: fa07c360b708324c47c8e9931f1e2b1b24e4faf8
2008-07-08 18:05:26 +00:00
danielk1977
49fc1f60b0
Prevent the flattening optimization from transforming a to a query with an illegal ORDER BY clause. (CVS 5372)
...
FossilOrigin-Name: 6c2adade34fdbe344cf73f6bac951e0c37dd003b
2008-07-08 17:43:56 +00:00
danielk1977
1bc71590c4
Test another corruption case in btree.c. And an IO error related scenario. (CVS 5371)
...
FossilOrigin-Name: d74fbb81ca3f973ac46534344e5076afc5dd5491
2008-07-08 17:13:59 +00:00
danielk1977
9ffe5d7247
3 more coverage tests for btree.c. (CVS 5370)
...
FossilOrigin-Name: 96df0a5fa4bb2b3dfedf034d81704e152cdc63a9
2008-07-08 15:59:51 +00:00
drh
ddff9ae46b
Tests for SQLITE_LIMIT_LENGTH enforcement in sqlite3_bind. (CVS 5369)
...
FossilOrigin-Name: c5e45dd664198e5b4fc44b316bd4adbc9a6c296b
2008-07-08 15:26:49 +00:00
drh
0a687d123e
Improved enforcement of the SQLITE_LIMIT_LENGTH limit. (CVS 5368)
...
FossilOrigin-Name: ee93150878436ce6e992ea8a1d348fb58b03b5e2
2008-07-08 14:52:07 +00:00
danielk1977
35af9ba095
Another corruption related test case. (CVS 5367)
...
FossilOrigin-Name: f781a68127c97e30763447a12314180f0728deb9
2008-07-08 14:31:14 +00:00
danielk1977
00f0faf3ac
Fix a compilation bug with SQLITE_OMIT_AUTOINIT. (CVS 5366)
...
FossilOrigin-Name: 94c95fad56965b68176e93f0690f0819ad40bcf7
2008-07-08 14:17:35 +00:00
danielk1977
a961339cd7
Extra coverage tests for btree.c. (CVS 5365)
...
FossilOrigin-Name: 08334f60303e63b581fa7f1f00d3e8833f1710ca
2008-07-08 12:07:32 +00:00
danielk1977
fb437278bb
Make sqlite3_shutdown() a no-op if the library is not initialized. (CVS 5364)
...
FossilOrigin-Name: d725d3bbcef6a8093a246f8ef5b11bf690662393
2008-07-08 12:02:35 +00:00
danielk1977
3aa4b67f04
Improve coverage of btree.c. (CVS 5363)
...
FossilOrigin-Name: f6d9cb835b8f75545f455328d61ba225e7da9bc4
2008-07-08 10:19:58 +00:00
danielk1977
983e230939
Prohibit the user from changing the temporary storage medium (pragma temp_store) while there is a read transaction open on the temporary database. Add tests to shared.test to cover a few more lines in btree.c. (CVS 5362)
...
FossilOrigin-Name: 92e0cf9a08a8b337a8f239afb048a0e045485771
2008-07-08 07:35:51 +00:00
shane
5e73db36c6
change to use sqlite_uint64 for MSVC compile; (CVS 5361)
...
FossilOrigin-Name: 369118ca2e9da55f44b946559ad38a14efe723e5
2008-07-08 03:04:58 +00:00
drh
f43639a0bc
Test coverage improvements in printf.c. (CVS 5360)
...
FossilOrigin-Name: 6f2629c78327bb6cbb15d1f9900a1ef58f2d37dd
2008-07-08 02:24:02 +00:00
drh
c8d75674d6
Add tests to verify correct behavior when mutex initialization fails. (CVS 5359)
...
FossilOrigin-Name: 65875005ac8bc7988d7d7d8e8b999857449568fd
2008-07-08 02:12:37 +00:00
drh
fb45d8c563
Testing coverage enhancements. (CVS 5358)
...
FossilOrigin-Name: fe80aa58a4ac12db5a92d25d28165f5159f04533
2008-07-08 00:06:49 +00:00
drh
bd0b1b50f4
Make check-in (5356) compatible with builds that do not enable memory
...
management. Remove unnecessary code from main.c. Add out-of-memory
tests for sqlite3_complete16(). (CVS 5357)
FossilOrigin-Name: 28f8b6bfcc3e169f8a54a6681395f2c85bf99cab
2008-07-07 19:52:09 +00:00
danielk1977
da8c8f2f8f
Fix an error introduced by (5346). The list could become corrupted when the database was truncated. (CVS 5356)
...
FossilOrigin-Name: fbd320ed27dc8910f5035b41171576b4a37cb8b9
2008-07-07 18:42:40 +00:00
danielk1977
75c5fa88e9
Fix a problem in shared_err.test preventing it from running properly and add a test to corrupt2.test to cover another corruption detection case. (CVS 5355)
...
FossilOrigin-Name: 2dcd5287a0d71140baa23aae2ab3d95d78a5676d
2008-07-07 17:55:28 +00:00
drh
d55d57ed5e
When sqlite3_create_collation is called with an invalid encoding, return
...
SQLITE_MISUSE. (CVS 5354)
FossilOrigin-Name: eae4105d8a162ba80ca6fde40ae24fdc6c3eccdf
2008-07-07 17:53:07 +00:00
danielk1977
2ef684875f
Fix an error checked in as part of (5350). (CVS 5353)
...
FossilOrigin-Name: acfb2b41ae66307ba80b6245aced9cc1d8092189
2008-07-07 17:13:08 +00:00
danielk1977
b34a4ede32
Another test case to test a specific kind of database corruption. (CVS 5352)
...
FossilOrigin-Name: 38e04d67635d49661f9b95338fc1cb8197bf0bc7
2008-07-07 17:04:22 +00:00
danielk1977
2b76b05dcc
Add a test case to test corruption discovered as part of the ptrmapPut() routine. (CVS 5351)
...
FossilOrigin-Name: cbb9536fc4fb2419e0eb6f3a32c67eeb7a73da82
2008-07-07 15:39:11 +00:00
danielk1977
7eaabcdb2a
Test a couple of specific malloc() failures that were not tested before. (CVS 5350)
...
FossilOrigin-Name: b96bcaa197519b5be89e1f6a1579f0e36fe2b644
2008-07-07 14:56:56 +00:00
drh
24b58dd717
Additional test cases added on the sqlite3_create_function() interface. (CVS 5349)
...
FossilOrigin-Name: 4e941f3d43556d8a503bb96e8a74451de36d243e
2008-07-07 14:50:14 +00:00
drh
a2820970c5
Add the vfs_unregister_all and vfs_reregister_all test commands. Use them
...
to test the sqlite3_sleep() interface when no VFSes are registered. (CVS 5348)
FossilOrigin-Name: 024d439299478062b6efdb63adce85b251af18ce
2008-07-07 13:31:58 +00:00
drh
6aa1edce9b
Fix a comment in alter.c. No changes to code. (CVS 5347)
...
FossilOrigin-Name: 3e558acd5eb8aa5ef4681e62284af5c017a24a65
2008-07-07 12:44:58 +00:00
danielk1977
21b7ce6151
Make the Pager.pAll linked-list doubly linked when ENABLE_MEMORY_MANAGEMENT is defined. This is used to speed up sqlite3_release_memory(). (CVS 5346)
...
FossilOrigin-Name: 71d699de366fc9c97d4a5122e2bf754310b9b34a
2008-07-07 11:18:27 +00:00
drh
8c4d5b252e
Fail to build if the -ffast-math option is specified in GCC.
...
Ticket #3202 . (CVS 5345)
FossilOrigin-Name: aa5be9ee935ae2a45d78405e26bba2385a52563a
2008-07-06 00:21:35 +00:00
drh
45b1fac0ac
Fix a bug in btree.c that caused it to report a database as being
...
corrupt if it used one of the last 6 slots in a freelist trunk page.
Continue to never use those last 6 slots so that databases from newer
versions are still readable with older versions. (CVS 5344)
FossilOrigin-Name: b8ff6b0a3dc2ccc51519c764a092822968a09b10
2008-07-04 17:52:42 +00:00
danielk1977
bb50e7ad76
Fix for explicitly inserting a NULL value into the rowid column of a virtual table. (CVS 5343)
...
FossilOrigin-Name: a7f3b431669f7392a6acba8cd8f3fa5297a916b5
2008-07-04 10:56:07 +00:00
danielk1977
2f425f6b64
Remove redundant code from sqlite3GetTempReg(). (CVS 5342)
...
FossilOrigin-Name: 212d05d38c8126f99c028c5ab021b219487fa01e
2008-07-04 09:41:39 +00:00
danielk1977
a7d8b85980
Remove references to temporary registers from the compiler column-cache when such registers are released. Fix for #3201 . (CVS 5341)
...
FossilOrigin-Name: f099d6773a837dbe4ba85a8fda818e2d9466e743
2008-07-04 09:15:11 +00:00
shess
6c106e3f3b
fts3 functions for testing scripts. These are a first step towards
...
being able to write test script which verify that fts3 is internally
building indices in the expected way. Both new functions are only
defined if fts3.c is compiled with SQLITE_TEST defined, as when
building testfixture. These functions are not intended to be part of
the exposed fts3 API.
dump_terms() generates a TEXT result of all the terms in the index (or
a specified segment), sorted and joined with spaces.
dump_doclist() generates a TEXT representation of the doclist
associated with a given term in the index (or a specified segment). (CVS 5340)
FossilOrigin-Name: a48e3d95f7a656285e959cef595cbe6d53428ad9
2008-07-03 19:53:21 +00:00
danielk1977
1f9caa41a0
Fix a memory leak that can occur following a malloc failure. (CVS 5339)
...
FossilOrigin-Name: cec4eba1a105396c5fd5d2b664456f6d6be3f215
2008-07-02 16:10:45 +00:00
danielk1977
524cc21ed6
Call the authorizer callback the same number of times whether or not the query flattening occurs. (CVS 5338)
...
FossilOrigin-Name: 8b88b64bb37df4e38cbfe31a14c219688b26e2af
2008-07-02 13:13:51 +00:00
danielk1977
4914cf92e3
Fix errors in in.test. Also add a few tests to selectB.test. (CVS 5337)
...
FossilOrigin-Name: 8f9d1abb315a3d4aa3a580fd5cf3ae572cc330f4
2008-07-01 18:26:49 +00:00
danielk1977
5e7ad50858
Fix another memory leak related to UNION ALL and sub-selects. (CVS 5336)
...
FossilOrigin-Name: 56109b9a1f600ab3f16769aba0d47dcf782bbc95
2008-07-01 17:39:27 +00:00
drh
4dc8ef520a
In lemon: coalesce identical destructors. (CVS 5335)
...
FossilOrigin-Name: 3447086cd3f6e9b89a8cf61afcf4715977bbf4cd
2008-07-01 17:13:57 +00:00
drh
32c4d743bc
In Lemon, if a non-terminal has the same type as a terminal, then reuse the
...
terminal type in the YYMINORTYPE union for the non-terminal. This gives
better table compression. (CVS 5334)
FossilOrigin-Name: 5c9cc22cd8e9bec3d8622d2c354423281f2db0fb
2008-07-01 16:34:49 +00:00
danielk1977
eca7e01a71
Fix a memory leak to do with the recent UNION ALL sub-select optimization. (CVS 5333)
...
FossilOrigin-Name: 6ee71f4ddb4fa934f58c87dad2d30560af2e55d7
2008-07-01 16:05:25 +00:00
danielk1977
4b86ef1d87
Fix a problem with LIMIT and OFFSET clauses on the parent query when optimizing a UNION ALL sub-select. (CVS 5332)
...
FossilOrigin-Name: a79786a961dba8f4ffaddbe55e6467c14b12f7d6
2008-07-01 14:39:35 +00:00
danielk1977
f23329a221
Optimize sub-selects and views that use UNION ALL. This optimization isn't very well tested yet. (CVS 5331)
...
FossilOrigin-Name: 3ef468e7046b2091b5b6880fe19261ef1ee2887b
2008-07-01 14:09:13 +00:00
danielk1977
daf79acb68
Call the query flattener while processing the parent query. Previously, it was called while processing the sub-queries. (CVS 5330)
...
FossilOrigin-Name: 6fcb3bffe26ae1c21c72ce9019f1db1c118094a4
2008-06-30 18:12:28 +00:00
danielk1977
63703a42f1
Changes to loadext.test so that it works on osx as well as linux. (CVS 5329)
...
FossilOrigin-Name: 189cd85413a2e00696752bb82e7a442e86e621ac
2008-06-30 15:09:29 +00:00
danielk1977
6cb427f5c4
Fix a malloc() failure related problem in os_unix.c. (CVS 5328)
...
FossilOrigin-Name: ba8819a6f3dbc45d88346789de42971aacc0d246
2008-06-30 10:16:04 +00:00
danielk1977
7a8097b6d8
Add a couple of tests to see if the new compound select optimizations work when the compound select is hidden inside a view. (CVS 5327)
...
FossilOrigin-Name: 1a711249c25aafbaf08057ffdcbb9cf2f872f13d
2008-06-30 07:53:09 +00:00
danielk1977
986fbb8e30
Remove an assert() that was failing if there were any open incremental blob handles when a statement transaction was rolled back. (CVS 5326)
...
FossilOrigin-Name: f66491ab2ba3645d4e44e33ec6fa0ab94b2989be
2008-06-28 15:33:24 +00:00
mihailim
65df9db007
Added reminder message to terminate SQL statements with a semicolon on shell startup. This closes #3099 . (CVS 5325)
...
FossilOrigin-Name: 0ab0b030dea03ec6693358b733329328828cf802
2008-06-28 11:29:22 +00:00
danielk1977
e339d65a89
Rearrange some ENABLE_LOCKING_STYLE related code in os_unix.c. (CVS 5324)
...
FossilOrigin-Name: f70d552bcd0df884eea2e2272bae558d35fc8845
2008-06-28 11:23:00 +00:00
mihailim
7ffb2b5f35
Changed copy-paste error in comment. Fixes #3193 . (CVS 5323)
...
FossilOrigin-Name: 00eee53e8626591c4a0c61fe35735ec95ab3ef72
2008-06-27 18:59:44 +00:00
drh
cf538f411d
Documentation tweaks. (CVS 5322)
...
FossilOrigin-Name: fcbd39344c0bf3a734bab6606d3988810b69b7d5
2008-06-27 14:51:52 +00:00
danielk1977
0d84e5b2a7
Fix mem3.c (broken by (5320)). (CVS 5321)
...
FossilOrigin-Name: fef90a21aea11f15371d3fcf44548d786dd8819b
2008-06-27 14:05:24 +00:00
danielk1977
5099be5e85
Change mem5.c so that the minimum allocation size is runtime configurable. (CVS 5320)
...
FossilOrigin-Name: 4f95f4cdf77e134fab42148e10198c7b008d4ae6
2008-06-27 13:27:03 +00:00
drh
6fccc35a91
Remove unused variable. Fix a compiler warning. (CVS 5319)
...
FossilOrigin-Name: 0b01ec5cf7725a02d4c12167df125cef578f6219
2008-06-27 00:52:45 +00:00
drh
66ba23ce86
Tweaks to the IN expression code generator. Fix an an unrelated bug
...
in the compound SELECT code generator. (CVS 5318)
FossilOrigin-Name: a4005782690f022e982df4873779a029b28b9306
2008-06-27 00:47:28 +00:00
drh
3c31fc23b1
Fix a bug introduced by check-in (5316). Add some VDBE comments to
...
the IN expression code generator. (CVS 5317)
FossilOrigin-Name: 1043a605e2dcad4b5222674efe392ee9915dc57d
2008-06-26 21:45:26 +00:00
drh
ecc31805da
Avoid generating unnecessary SCopy instructions with the RHS of an IN
...
operator is a list of values. (CVS 5316)
FossilOrigin-Name: ec80474b1c157a29fb6978dd5575c396c57973b3
2008-06-26 20:06:06 +00:00
drh
4ead1482d8
Documentation updates in sqlite.h.in. No changes to code. (CVS 5315)
...
FossilOrigin-Name: 168fd6f83e2c837e91d02fa49fff3fe2f9538928
2008-06-26 18:16:05 +00:00
danielk1977
0cdc022e88
Fix handling of "x IN (...)" and "x NOT IN (...)" expressions when the set contains an SQL NULL value. (CVS 5314)
...
FossilOrigin-Name: d45a97be71fa61ab4a692bd807ab762130f7f5b9
2008-06-26 18:04:03 +00:00
drh
9de1b35189
Document the rules for when an sqlite3_blob object expires. (CVS 5313)
...
FossilOrigin-Name: e1de2287fd9b067f687cb8b427786b878af6c5b7
2008-06-26 15:04:57 +00:00
danielk1977
b06a0b67c4
Change the TEMP_STORE preprocessor symbol to SQLITE_TEMP_STORE. (CVS 5312)
...
FossilOrigin-Name: 1e3b8308021107d983d2152663f62b369cca091d
2008-06-26 10:54:12 +00:00
danielk1977
29bafeabcd
Change the OS_XXX pre-processor symbols to SQLITE_OS_XXX. Symbols "OS_UNIX", "OS_WIN", "OS_WINCE", "OS_OS2" and "OS_OTHER" are now "SQLITE_OS_UNIX", "SQLITE_OS_WIN", "SQLITE_OS_WINCE", "SQLITE_OS_OS2" and "SQLITE_OS_OTHER", respectively. (CVS 5311)
...
FossilOrigin-Name: cdd4cf4ce2ab363ddc3f27c5e44896e17269a161
2008-06-26 10:41:19 +00:00
danielk1977
71bc31c68d
Fix a race condition in sqlite3_initialize(). (CVS 5310)
...
FossilOrigin-Name: 70b2ed2afcf1757d1c58f3a83dad4a5fb226ae63
2008-06-26 08:29:34 +00:00
drh
4766b29d95
Documentation updates. No changes to code. (CVS 5309)
...
FossilOrigin-Name: cdc4e75a9f1e3c79ade92344cf32a4225222d44f
2008-06-26 02:53:02 +00:00
danielk1977
ff3c898d13
Change the makefiles so that "make test" now runs the veryquick.test script instead of quick.test. Also modify veryquick.test to reuse the code in quick.test. veryquick.test is now the same as quick.test except that it omits all testing related to malloc and IO error simulation. (CVS 5308)
...
FossilOrigin-Name: 8c65146ea0e77e8e31fffc467806b1edf91fb4db
2008-06-25 17:54:53 +00:00
danielk1977
c0fa4c5f32
Remove internal function sqlite3OsDefaultVfs(). The built-in VFS layers now register their VFS implementations by calling sqlite3_vfs_register() from within sqlite3_os_init(). (CVS 5307)
...
FossilOrigin-Name: 8fa33b79d7369ec5777fd9ad3349f0fa31b98fd6
2008-06-25 17:19:00 +00:00
danielk1977
6b39c2e40b
Have mem3.c and mem5.c grab a mutex when required. Include them both in the amalgamation again. (CVS 5306)
...
FossilOrigin-Name: 9e3c95ff4048cd8e4c56acf7a8ebedc49621e9c7
2008-06-25 14:57:53 +00:00
drh
3f994d06ff
Test enhancements, especially to the new compound-SELECT merge logic. (CVS 5305)
...
FossilOrigin-Name: edf7f518361902924105142a8c67b898ba7d532f
2008-06-25 14:31:53 +00:00
danielk1977
c66c0e14a6
Fix the allocator in mem5.c so that it can be enabled at run time using the sqlite3_config() function. (CVS 5304)
...
FossilOrigin-Name: 30ff6bb0b2d1068d28e86ac90bb9f454e4537a2d
2008-06-25 14:26:07 +00:00
danielk1977
32155ef0ff
Fix up some details to do with the mem3.c (memsys3) allocator. If the library is compiled with SQLITE_ENABLE_MEMSYS3, the memsys3 allocator can be selected at runtime. (CVS 5303)
...
FossilOrigin-Name: 9c6c8e01b31abfe2bc8e650bbfdb504021dc7e59
2008-06-25 10:34:34 +00:00
mihailim
29b13cc9d9
Fixed typo to close #1731 . (CVS 5302)
...
FossilOrigin-Name: 9902be8d66453d3f4cfdc7f81a4ebe9bc6729204
2008-06-25 08:02:44 +00:00
drh
ff354e91ba
If a unique index covers any prefix of the ORDER BY clause then let it
...
satisfy the ORDER BY clause. (CVS 5301)
FossilOrigin-Name: e53403b6d742be83c5b130ed6cef4035d081d613
2008-06-25 02:47:57 +00:00
drh
fae37af17f
Add new test script for compound select statements. (CVS 5300)
...
FossilOrigin-Name: a193b1612e7ccd1c8f6136ece8d4768fccfe43fe
2008-06-25 02:22:32 +00:00
drh
0acb7e4849
The compound-select merge optimization passes quick.test with no errors. (CVS 5299)
...
FossilOrigin-Name: 8bbfa97837a74ef0514e0c92ea2a6576f02cc361
2008-06-25 00:12:41 +00:00
pweilbacher
91ef8f45c4
OS/2 fixes for pre-C99 compilers and a return code correction in os2Access(). (CVS 5298)
...
FossilOrigin-Name: 3241a3bdd08f6abf3f1655152e296cc7ebe73bca
2008-06-24 22:50:06 +00:00
danielk1977
57e5ea9327
Modify the memory allocation system in mem3.c so to fit in with the new sqlite3_mem_methods scheme. At this point it only "mostly" works. (CVS 5297)
...
FossilOrigin-Name: 3febef548fb1c314336fe4bc359d72a4fe84e84e
2008-06-24 19:02:55 +00:00
danielk1977
6fb6444c3e
Add a few extra tests to select9.test. (CVS 5296)
...
FossilOrigin-Name: 37b084fd7d7ad7f13fc9454fc25ca5aed48d4a31
2008-06-24 15:39:43 +00:00
drh
f6e369a119
Fix a problem in sqlite3ExprIsInteger() causing failures on select1-4.9.2.
...
Other bug fixes in compound-merge. The compound-merge is still disabled
in this check-in using "#if 0" due to additional bugs. (CVS 5295)
FossilOrigin-Name: 95037e6dbf4ed0ffd38790f3270dcaa4c1ae64ed
2008-06-24 12:46:30 +00:00
drh
398cf3d707
Remove a surplus "breakpoint" from select4.test. (CVS 5294)
...
FossilOrigin-Name: 3117238ce9cbfc36e2de929592decef86220e2a2
2008-06-24 12:28:03 +00:00
danielk1977
9afe68477d
Add start of new test file "select9.test". To test LIMIT, OFFSET and ORDER BY on compound SELECT statements. (CVS 5293)
...
FossilOrigin-Name: 3a13e943d8fb4060fc1f0f827a156a730ee64be0
2008-06-24 11:21:20 +00:00
danielk1977
c001fc3c24
Fix a typo in the documentation for the sqlite3_bind_XXX() APIs. (CVS 5292)
...
FossilOrigin-Name: 839457f128c91a20aeae7ba570b4840792d41239
2008-06-24 09:52:39 +00:00
drh
92b01d53c2
The compound-select merge optimization is mostly working with this check-in.
...
But there are still a few problems and so the optimization is disabled by
and "#if 0". This check-in is to synchronize with the other changes happening
in parallel. (CVS 5291)
FossilOrigin-Name: e2ba324cbcac0ba35bbde50048677e085abb092b
2008-06-24 00:32:35 +00:00
pweilbacher
261696416b
Update OS/2 mutex implementation: make methods static and don't use them by the old names any more. Held/Notheld should be debug only. (CVS 5290)
...
FossilOrigin-Name: d92418ca502f5f58dc968668e11c42955a7b1e52
2008-06-23 22:13:27 +00:00
mihailim
57c591aa92
Reverted previous checkin (on second thought, changing case could break badly written homegrown parsers such as sometimes encountered in embedded firmware.) (CVS 5289)
...
FossilOrigin-Name: bf2e283d6fd40cabe55864b06b502524eb8a3b07
2008-06-23 21:26:05 +00:00
mihailim
d3d259dcb7
Changed HTML mode output to use lowercase tags making good on the XHTML output promise (the DTDs indeed mandate lowercase) and closing #450 . (CVS 5288)
...
FossilOrigin-Name: e07ed82caf5e4706ef564271830112d31e8cff7c
2008-06-23 21:18:10 +00:00
mihailim
bfccf423b5
Added ldconfig invocations for postinstall and postuninstall. Updated package URL and description to match the current website. (CVS 5287)
...
FossilOrigin-Name: 66529ae3a21ea8c57d3f50cdf6e1e8929fd7e437
2008-06-23 20:55:20 +00:00
danielk1977
f7b9d66fd4
Fix a bug in handling queries on the sqlite_master table with an empty (0 bytes in size) database file. (CVS 5286)
...
FossilOrigin-Name: f8238770bf41e17014c6de05363b759304fc80de
2008-06-23 18:49:43 +00:00
drh
52fd7beaba
Additional tests added to capi3.test. (CVS 5285)
...
FossilOrigin-Name: 1fdab2c65b966f74bdf130c640ae56a0e811fb71
2008-06-23 17:56:47 +00:00
danielk1977
27a430cc84
Fix a failure to report a failed malloc() within sqlite3_create_module(). (CVS 5284)
...
FossilOrigin-Name: 3ca7dab88e030cc945e0d358d7f53ddca35bc221
2008-06-23 17:44:18 +00:00
danielk1977
8cf6c554c0
Fix a bug causing the pager-cache size to be reset to its default value whenever the database schema was reloaded. (CVS 5283)
...
FossilOrigin-Name: 6dbe67da5cb0141e011b4fdcc3964a20f68be843
2008-06-23 16:53:46 +00:00
danielk1977
b13dee9900
Run (a subset of) the rtree tests from quick.test. (CVS 5282)
...
FossilOrigin-Name: e872c78c72eb5976e72123485692a76409bd857f
2008-06-23 15:55:52 +00:00
danielk1977
950292fbb8
Handle a real system malloc() failure in mem1.c. (CVS 5281)
...
FossilOrigin-Name: 006fd69bf56f05448fd9aa82d3b1cdcc175369ad
2008-06-23 15:10:24 +00:00
danielk1977
834a5aab16
Remove a non-ansi construct from mem1.c - an assert() statement before the variable declarations in a function. (CVS 5280)
...
FossilOrigin-Name: 1de98da6b4c2039e5dc594cc9bfc7d49ae36697c
2008-06-23 14:40:18 +00:00
danielk1977
ca02679635
Avoid passing "void(*)(void)" as an argument to va_arg(). Codewarrior doesn't like it. (CVS 5279)
...
FossilOrigin-Name: edae76d6ff5918007c0a802a34e65412f8f0ebb6
2008-06-23 14:15:52 +00:00
danielk1977
867d05a019
Fix some codewarrior compilation problems. (CVS 5278)
...
FossilOrigin-Name: e6ea8f87c102bd36ab0f2fbc8360fde49f4e3422
2008-06-23 14:03:45 +00:00
danielk1977
5dfecba1a4
Fix a compilation problem with SQLITE_OMIT_VIRTUAL_TABLE is defined. (CVS 5277)
...
FossilOrigin-Name: 0421c09967a191fb62338eb8b1bd766be42f61cc
2008-06-23 13:57:21 +00:00
mihailim
bda2e62c55
Fixed wrong type in sqlite3_create_collation16 declaration and definition (UTF-16 string had been passed as const char* instead of const void*) (CVS 5276)
...
FossilOrigin-Name: 4215e3e5ae3376bd46e5e12eec14b8209c164830
2008-06-23 11:23:14 +00:00
danielk1977
8468024da8
Correct comments above sqlite3_release_memory() and sqlite3_soft_heap_limit(). Ticket #3138 . (CVS 5275)
...
FossilOrigin-Name: 3240446853a11f5a1e379d4841d0268873aad64d
2008-06-23 11:11:35 +00:00
danielk1977
171bfed311
Fix a bug whereby opening a connection to an existing shared-cache caused the cache-size (the value configured by "PRAGMA cache_size") to revert to its default value. (CVS 5274)
...
FossilOrigin-Name: 0492aa8ed3c35dd2cdfc69c9cb87e43ef0460826
2008-06-23 09:50:50 +00:00
mihailim
421dfca16b
Removed INVARIANTS sections in the experimental extension loading API that I should not have added in the first place. No changes to code. (CVS 5273)
...
FossilOrigin-Name: e7610890b4df78af5bb8f3e8f8d05ef5cf36e186
2008-06-22 16:35:48 +00:00
drh
b21e7c70f7
Fix a bug in the KEYINFO handling within select.c. Change the OP_Move
...
opcode to take a count and to move multiple registers. Initial code for
the compound-select merge optimization is added but is incomplete
and is commented out. (CVS 5272)
FossilOrigin-Name: 663a590e3086145a57af7569d8f798b6b6a8b76c
2008-06-22 12:37:57 +00:00
mihailim
04bcc00788
Readded erroneously deleted {END} tag and doublechecked {(F,U,X)*}-{END} tag balancing. Minor documentation cleanup. No changes to code. (CVS 5271)
...
FossilOrigin-Name: b55590501b5b5ada4e22d790e1a36b532de7deb7
2008-06-22 10:21:27 +00:00
mihailim
1519422672
More documentation spellcheck and cleanup. No changes to code. (CVS 5270)
...
FossilOrigin-Name: 3a88e3ded9c54c319b6c5b6c3d521752cb6dac6d
2008-06-22 09:55:14 +00:00
mihailim
dc884825d3
More documentation spellcheck and cleanup. No changes to code. (CVS 5269)
...
FossilOrigin-Name: d96b9bcd10c3fe27a449e6ad3ab77c2187a06578
2008-06-22 08:58:50 +00:00
mihailim
ebe796ca5b
More documentation spellcheck and cleanup. No changes to code. (CVS 5268)
...
FossilOrigin-Name: 65edead166aafa8ca18b3aaa9eda89816239066a
2008-06-21 20:11:17 +00:00
danielk1977
94527a6d49
Prevent veryquick.test and all.test from running permutations.test directly. (CVS 5267)
...
FossilOrigin-Name: ae9e4c0e4d5639ff11f3fa23775a1118b39688c8
2008-06-21 19:20:13 +00:00
danielk1977
2dd6d809b6
Fix a bug in permutations.test causing the utf-16 tests to fail. (CVS 5266)
...
FossilOrigin-Name: 710621f373398748f31942f2ac9d1c857492538a
2008-06-21 19:10:27 +00:00
danielk1977
1077e3f7e0
Add test file permutations.test, which runs various other test files with sqlite configured in various ways. This adds a few new tests and replaces test files autovacuum_crash.test, autovacuum_ioerr.test, exclusive3.test, jrnlmode2.test, jrnlmode3.test, jrnlmode4.test, mutex2 and onefile.test. (CVS 5265)
...
FossilOrigin-Name: 0e9df3507bd30d320b7ccfeaf3e06e10938022e1
2008-06-21 18:07:37 +00:00
mihailim
1c4926557a
More documentation spellcheck and cleanup. No changes to code. (CVS 5264)
...
FossilOrigin-Name: 9ae03f5629fb47006ae2d8108dfab3956833d943
2008-06-21 18:02:16 +00:00
mihailim
efc8e8a67a
More documentation spellcheck and cleanup. No changes to code. (CVS 5263)
...
FossilOrigin-Name: 3edfc64f27ba50ba43b79435b3f5d273e3c29aff
2008-06-21 16:47:09 +00:00
mihailim
a3f64901f7
More documentation spellcheck and cleanup. No changes to code. (CVS 5262)
...
FossilOrigin-Name: 47b7b05e55d35450a14250a00468dfbcf4bf49bb
2008-06-21 13:35:56 +00:00
danielk1977
959e3a9b80
Remove mutex2.test. It will be replaced later today by permutations.test. (CVS 5261)
...
FossilOrigin-Name: 98a6a0a30f16cbc60c655663b5895429a34da0ba
2008-06-21 12:15:04 +00:00
mihailim
db4f2adf82
More documentation spellcheck and cleanup. No changes to code. (CVS 5260)
...
FossilOrigin-Name: 8c457fb08b93aa1aa9f62d0ec31755d74416e16b
2008-06-21 11:20:48 +00:00
danielk1977
4b9507a0f1
Fix a problem in the test suite that could cause a crash if using a pre-allocated block of memory for pages (the problem was that sqlite3_shutdown() was being called while there were still open database connections). (CVS 5259)
...
FossilOrigin-Name: 3d413e9b466a871650597407016131df4d07b3d2
2008-06-21 08:12:15 +00:00
mihailim
362cc83915
Documentation spellcheck and cleanup. No changes to code. (CVS 5258)
...
FossilOrigin-Name: 2904d26ba43b0ded5b43f696ba2d8cd19d4244de
2008-06-21 06:16:42 +00:00
drh
16ee60fff9
Add new Compare and Jump codes to the virtual machine. Use them in the
...
implementation of aggregate queries. (CVS 5257)
FossilOrigin-Name: 083113652ff8f69b18cf1611710fdbbe5fbd9fef
2008-06-20 18:13:25 +00:00
danielk1977
9324c8f280
Add a test to check that opening a second connection to a shared cache does not reset the cache size to its default value. (CVS 5256)
...
FossilOrigin-Name: 3546e245aaf5d75b9f52ffb3268da9bc26946396
2008-06-20 17:51:16 +00:00
drh
e00ee6eb37
Change the SRT_Subroutine mode into SRT_Coroutine. Use co-routines in
...
the INSERT processing logic. (CVS 5255)
FossilOrigin-Name: 6b9d92fc3f265ef75c9182e537812490bb818950
2008-06-20 15:24:01 +00:00
danielk1977
2d1d86fbbe
Add a mode to the sqlite3_test_control() interface to register hooks called at the beginning and end of "benign malloc failure" blocks. This allows malloc() failure testing to be done using public APIs only. (CVS 5254)
...
FossilOrigin-Name: 56c8af1452dfdc8da858a2411bd6f3663a8a9326
2008-06-20 14:59:51 +00:00
danielk1977
ef05f2dfe3
Move (almost all) malloc failure test logic from fault.c to test_malloc.c. (CVS 5253)
...
FossilOrigin-Name: 4ae21e3419ad7e69dd735ca45fdc5a2de93d1840
2008-06-20 11:05:37 +00:00
drh
af83758645
Patch to memsubsys1.test in order to avoid a segfault in tableapi.test. (CVS 5252)
...
FossilOrigin-Name: 62411a6e605ec50d8d61233d753cd2ad65c2218d
2008-06-20 00:03:21 +00:00
drh
3780b5de7e
Unset global TCL variables in the func.test script prior to use to avoid
...
conflicts from other scripts. (CVS 5251)
FossilOrigin-Name: 9b04e10f6c00c36652444206d1d8868a560eb56e
2008-06-19 18:39:11 +00:00
danielk1977
d09414cdd6
Move the malloc() failure simulation out of malloc.c and into a separate sqlite3_mem_methods interface. Still some related changes to come. (CVS 5250)
...
FossilOrigin-Name: d22cd2a59f472f4eaf80aa9f55fbff2514ca428d
2008-06-19 18:17:49 +00:00
drh
55b0cf00ad
Documentation and test-script updates. (CVS 5249)
...
FossilOrigin-Name: 68d4f7954108f5bf586c4706c8664d8333fb2230
2008-06-19 17:54:33 +00:00
drh
a418980be0
Fix some minor compile problems. (CVS 5248)
...
FossilOrigin-Name: 7d38da3eea9ce93f32e90fce0af5101e2cf12462
2008-06-19 16:07:07 +00:00
drh
d72a841467
Additional test cases for loadable extensions. (CVS 5247)
...
FossilOrigin-Name: 9d73a68c305db673d393db118b6a41241683a670
2008-06-19 15:44:00 +00:00
drh
8b6abedb6f
Add recent API additions to the loadable extension interface. (CVS 5246)
...
FossilOrigin-Name: 12ba27d94e3fb448f88b5efb43b35242fd893297
2008-06-19 15:06:24 +00:00
drh
c4b18b827d
Check in the missing status.c source file. (CVS 5245)
...
FossilOrigin-Name: 298113d4a707ecf59d5dfd8bca45bfe734fb9fbb
2008-06-19 13:20:01 +00:00
danielk1977
4a9d1f665f
Shuffle some of the mutex related documentation in sqlite.h.in to match the new sqlite3_mutex_methods based API. (CVS 5244)
...
FossilOrigin-Name: 9cd7f8669a59c6096331229df2e2ad87e628abab
2008-06-19 08:51:23 +00:00
drh
bb5a9c3eea
Add the sqlite3_next_stmt() interface, including test cases. (CVS 5243)
...
FossilOrigin-Name: 565a530896b40790287eeaad709edd51980fbddf
2008-06-19 02:52:25 +00:00
drh
8c4d6b97e0
Fix a bug in the noop-mutex implementation. (CVS 5242)
...
FossilOrigin-Name: eec9a54dc3554a00ea69fc8e26d205f30a3bcabd
2008-06-19 01:50:09 +00:00
drh
65bbf29ee3
Bug fixes: Plug a memory leak introduced by the previous check-in. Get
...
the amalgamation to the point where it will compile. (CVS 5241)
FossilOrigin-Name: 005f8eaef5ae05cef5c76f3afe299eaa2cf8af2f
2008-06-19 01:03:17 +00:00
drh
f714199054
Add some test logic to the new memory allocation subsystem. (Lots more needed.)
...
The test suite is currently indicating memory leaks, though it is unclear if
this is a true code problem or just an instrumentation problem. (CVS 5240)
FossilOrigin-Name: cb1f11cd9764cf0275e88e1f6342e366e5536bfd
2008-06-19 00:16:08 +00:00
pweilbacher
6a9773e884
fix OS/2 files to compile again (looking at Windows equivalents for guidance) (CVS 5239)
...
FossilOrigin-Name: 8b14a220f261b354e7d2d16dc3fe30c5d3d34143
2008-06-18 21:08:16 +00:00
danielk1977
d025174f0b
Remove public APIs sqlite3_mutex_init() and sqlite3_mutex_end(). This commit only changes the code, documentation is not updated yet. (CVS 5238)
...
FossilOrigin-Name: 42a2a8f49324e2e07b81fd08e24f636a2d98a961
2008-06-18 18:57:42 +00:00
drh
9ac3fe979f
Added support for scratch-memory lookaside allocations. Largely untested.
...
Added calls to sqlite3_initialize() within malloc APIs. (CVS 5237)
FossilOrigin-Name: 383a78601c70cd832c171344857038e345b9ae5c
2008-06-18 18:12:04 +00:00
danielk1977
bc10d7730c
Add a call to sqlite3_initialize() to sqlite3_mutex_alloc() (CVS 5236)
...
FossilOrigin-Name: 8b23b719440aca9fca7e8f409729c3318ff3f80c
2008-06-18 18:08:39 +00:00
danielk1977
01bf29966d
Fix a test case in mutex1.test that was failing when sqlite was compiled with SQLITE_THREADSAFE=0. (CVS 5235)
...
FossilOrigin-Name: d1a87c3bcc9a32918f1cf743f85cd1a71557220e
2008-06-18 17:59:03 +00:00
danielk1977
59f8c08ecc
Implement the 'CONFIG_SINGLETHREAD' and 'CONFIG_MULTITHREAD' configuration modes. (CVS 5234)
...
FossilOrigin-Name: 5059644c4bc5f6679afd939e0bc26080f42a9918
2008-06-18 17:09:10 +00:00
drh
a2baf3a2e5
Make sure aggregate functions can take any number of arguments up to the
...
limit imposed by SQLITE_LIMIT_FUNCTION_ARGS. Ticket #3179 . Modify
the group_concat() function to take an unlimited number of arguments in
order to facilitate testing this behavior. (CVS 5233)
FossilOrigin-Name: 70c6739f4e84b3433e14960346b54d0e9e0bb9c6
2008-06-18 15:34:09 +00:00
drh
56a40a8010
Add documentation on the sqlite3_mutex_methods object. (CVS 5232)
...
FossilOrigin-Name: c3c7bfc9db6774824be14a1394e1842716dce8ec
2008-06-18 13:47:03 +00:00
drh
335897970c
Added new configuration options to query the low-level malloc interface
...
and to provide memory buffers for scratch, page-cache, and heap memory
allocators. (CVS 5231)
FossilOrigin-Name: e36201a352f832c97c5c0fcb872c1f094cac03d2
2008-06-18 13:27:46 +00:00
danielk1977
1a9ed0b27a
Add some test infrastructure and cases for the new mutex api. (CVS 5230)
...
FossilOrigin-Name: 262baee9952b28afe5dc77eb7365ebb11a480906
2008-06-18 09:45:56 +00:00
drh
5f09d3e611
Remove mem3.c and mem5.c from the amalgamation for the time being, since
...
they do not currently work. We will add them back later once they are fixed. (CVS 5229)
FossilOrigin-Name: 39b4e1ff4e3db3278c35eff10bbabdf4d87793a4
2008-06-18 02:01:07 +00:00
danielk1977
b2e36222af
Add the SQLITE_CONFIG_MUTEX symbol for use with sqlite3_config(). (CVS 5228)
...
FossilOrigin-Name: af1835bb5f5e3fb78d782c7c287e20db169e883f
2008-06-17 18:57:49 +00:00
danielk1977
6d2ab0e431
Change the mutex interface to be pluggable. This is an incremental checkin, there are still changes to come. (CVS 5227)
...
FossilOrigin-Name: 597283637bcdc2398bf249b2bbc6ded47ad2de22
2008-06-17 17:21:18 +00:00
drh
facf030792
Add internal interfaces: PageMalloc/PageFree and ScratchMalloc/ScratchFree. (CVS 5226)
...
FossilOrigin-Name: 3e797d0ffe1af6f7512b3fb7b387418ac05671e0
2008-06-17 15:12:00 +00:00
drh
cdb7a0feb5
Do not allow a VACUUM to try to change the page_size on an encrypted database. (CVS 5225)
...
FossilOrigin-Name: d49e5020019093a5b8a4fbe09caeb84ecb538629
2008-06-17 01:03:25 +00:00
drh
9be071664d
Clean up obfuscated code in sqlite3_table_column_meta_data().
...
Be sure to invoke sqlite3_initialize() within sqlite3_mprintf(). (CVS 5224)
FossilOrigin-Name: bb4edb53964559fc1cd69700beb72ecc29b58f37
2008-06-16 20:51:15 +00:00
danielk1977
dfdf9844aa
Fix a recently introduced resource leak in test file incrblob2.test (forgot to close a blob handle). (CVS 5223)
...
FossilOrigin-Name: 88e1c6092e48c860950d3437f264785243bb67ed
2008-06-16 14:36:01 +00:00
danielk1977
99e925da51
Fix a problem with the incremental blob API. sqlite3_blob_open() was always reading the data for the leftmost column of the row that the opened blob was stored in. If this column happened to contain a (the) large blob, sqlite would make a large memory allocation to read the data into. Which defeats the purpose of using incremental blobs. (CVS 5222)
...
FossilOrigin-Name: 1b9478da2f421c1270e76297324fff8037d2f231
2008-06-16 14:19:57 +00:00
danielk1977
fce96308b1
Add a test to verify that IN(...) WHERE clause terms are not handled by virtual table implemetations. (CVS 5221)
...
FossilOrigin-Name: 85483c8fb3b45281ce07e84349841fc80e560b1f
2008-06-16 06:31:34 +00:00
drh
e5ae5735c0
Continuing work on the new memory allocation subsystem.
...
Added routines for temporary memory allocation. Right the btree
balance mechanism to only do one temporary allocation at a time. (CVS 5220)
FossilOrigin-Name: 65fe7b62cfe7d11cd667681a64c96fe7b2fe5685
2008-06-15 02:51:47 +00:00
drh
fec00eabb3
Continuing progress on the new memory allocation subsystem. Added the
...
sqlite3_mem_methods structure for defining new memory allocators at
run-time. (CVS 5219)
FossilOrigin-Name: f00305f4cd2f487f660f34a21c1c24a0b37c7275
2008-06-14 16:56:21 +00:00
drh
40257ffd0a
Progress toward implementation of sqlite3_config() and a rework of the
...
mutex and memory allocation subsystems. This is an incremental check-in. (CVS 5218)
FossilOrigin-Name: a03c5af115889f477e17187a198a7d2d40bc76bf
2008-06-13 18:24:27 +00:00
drh
655194d6ae
Enhance zeroblob tests to use the sqlite3_memory_highwater in order to
...
double-check that no large allocations are occurring. (CVS 5217)
FossilOrigin-Name: e93079be83a9df7328d9b910fcbdb762be7ec815
2008-06-12 18:17:40 +00:00
drh
c91d86c95a
Fix a typo in the date/time function tests. Add additional cases to
...
the zeroblob tests to make sure sqlite3_bind_zeroblob() does not use
excess memory. (CVS 5216)
FossilOrigin-Name: c1006fb1c817bc0b7fada873edb772abbf972012
2008-06-12 18:05:40 +00:00
drh
85f477a141
Convert the date/time functions to work with milliseconds since the
...
julian epoch internally (instead of days since the epoch) in order to avoid
problems with floating-point roundoff error. The interface is unchanged. (CVS 5215)
FossilOrigin-Name: ed35f8a98323dadb64b423615287fb24ea262ffb
2008-06-12 16:35:38 +00:00
danielk1977
5e982b1c38
Add another test to incrblob2.test. This test failed to reveal any new bugs. (CVS 5214)
...
FossilOrigin-Name: 20d8ea45afcddf22632c3de984147826d0616d3f
2008-06-12 14:42:06 +00:00
drh
3af5d685d7
Avoid unnecessary float->text->float conversions in date/time processing.
...
This change necessary to reproduce the problem reported by BareFoot. (CVS 5213)
FossilOrigin-Name: 6ec4d7653b1e67ba0951e909ee23fe774762d646
2008-06-12 13:50:00 +00:00
drh
66147c9715
Add the ability to disable the "localtime" modifier in the date/time
...
functions. This might be necessary for systems that do not support
localtime_r() or localtime_s(). (CVS 5212)
FossilOrigin-Name: 12f3ba11e72b2310abf51d040d5344c81fe5ebd3
2008-06-12 12:51:37 +00:00
drh
be4076e084
Remove obsolete code from the test_osinst.c module. (CVS 5211)
...
FossilOrigin-Name: 699cec66cdae6818844612d69eb89aa8b93c3f1a
2008-06-12 12:40:13 +00:00
drh
9a8f176e8d
Copy the latest VFS changes into the OS/2 implementation. This is a blind
...
edit - I have no way to compile or test OS/2. (CVS 5210)
FossilOrigin-Name: b60508ccbc3159e994bc988512d9dbec3932deb6
2008-06-12 12:38:10 +00:00
shane
f1aaaa4092
Added additional testcases for julianday calculations with midnight boundary for UTC time. (CVS 5209)
...
FossilOrigin-Name: edd2cb00ae606858d8ae138c69eee7821b8cd6ea
2008-06-12 05:16:14 +00:00
shane
b08c1d0c7d
Added x86_64 version of hwtime function. Ticket #3156 . (CVS 5208)
...
FossilOrigin-Name: 0729f5c3d01200190897488f14aec413a5ea17f9
2008-06-12 02:24:38 +00:00
shane
022e8afe49
Removed all C++ style comments. Ticket #3172 . (CVS 5207)
...
FossilOrigin-Name: 59f72425eb9acd270110a6a739f98a045c555f23
2008-06-12 02:16:44 +00:00
drh
cb0413407c
Additional refinements to the new sqlite3_initialize() interface design. (CVS 5206)
...
FossilOrigin-Name: 14a9b9453bc1c85785fcc44617af80912f5118c8
2008-06-12 00:07:29 +00:00
drh
9e855dac4f
Adjust the error-message text in corrupt7.test. (CVS 5205)
...
FossilOrigin-Name: 4a77ff5b588f4c83959591c208a8b20224b75a66
2008-06-11 18:56:42 +00:00
danielk1977
e2326a5cf7
Fix an error in the previous commit found by corrupt7.test. (CVS 5204)
...
FossilOrigin-Name: afcfba0a8ac46e1d86a0fa2f1fbaeefe8ef10f7d
2008-06-11 18:27:55 +00:00
danielk1977
e16535f1f0
Check that the offsets in the cell-offset array of a b-tree page are within range in sqlite3BtreeInit(). (CVS 5203)
...
FossilOrigin-Name: 82f27e28eeb6902b75e21afd8eb170465f680d7b
2008-06-11 18:15:29 +00:00
drh
f3840b0645
Add a test case for the database corruption in the form of cell offsets
...
out of range in an otherwise valid btree page. (CVS 5202)
FossilOrigin-Name: c569a6cf664e9a8095f616327719392fb8186d37
2008-06-11 18:01:21 +00:00
danielk1977
d186854f3a
Update utility program speedtest8inst1.c. (CVS 5201)
...
FossilOrigin-Name: 98bdc7b44db737d3b77aa76c139995d2b185cd85
2008-06-11 11:00:31 +00:00
drh
ce5a5a0159
A completely new design for the sqlite3_initialize() and sqlite3_shutdown()
...
interfaces. (CVS 5200)
FossilOrigin-Name: 7dfcd73dc8e97e0bdbe05a22d0ed22b25e5a2786
2008-06-10 17:41:44 +00:00
danielk1977
3588ceb868
Invalidate sqlite3_blob* handles whenever an SQL statement is used to delete or modify the rows containing the open blob. Previously, modifying the table containing the open blob in any way invalidated the handle. This was too restrictive. (CVS 5199)
...
FossilOrigin-Name: e339c91f8718482ce74fc53781091db95e69d4c3
2008-06-10 17:30:26 +00:00
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
drh
35c6190cbc
Changes to the error handling policies of sqlite3_exec() to make them
...
more consistent. Changes to the documentation on the error handling
polices of sqlite3_exec() so that the documentation and code agree. (CVS 5148)
FossilOrigin-Name: a0376c7907db8e2993ce48e484001e981fbbb187
2008-05-20 15:44:30 +00:00
shane
05eaf73c8c
Added more DST boundary checks for 2006 and 2007. Added check for suspect Windows DST implementations and warning about them. Ticket #2322 . (CVS 5147)
...
FossilOrigin-Name: 14226ff0a7af7b39a1089a17eeb5bbb8d09d778d
2008-05-20 14:01:59 +00:00
shane
facbc288e3
Updated test case for Windows to get around problems in ticket #3129 . (CVS 5146)
...
FossilOrigin-Name: 2faf69ca1da43f8083b96675a4886648f10177d8
2008-05-20 13:17:28 +00:00
danielk1977
71aa7fff2d
Do not attempt to write a master journal name to the (non-existent) journal file in "no-journal" mode. Fix for #3127 . (CVS 5145)
...
FossilOrigin-Name: ffd4e50ab9b14fb7b686681c5e7a37b8355bbfca
2008-05-20 07:05:09 +00:00
drh
f50bebf0ec
Improvements to API documentation. The sqlite3_exec() function now
...
sets the result returned by sqlite3_errcode() when it receives an SQLITE_ABORT. (CVS 5144)
FossilOrigin-Name: f1df19ca17a09ab8d85a4a7eb04f3ce95a6722da
2008-05-19 23:51:55 +00:00
shane
cf77a45a10
SQLite stores native file names and paths for the database file. Under Windows, (file normalize test.db) is expanded using UNIX type path separators which TCL recognizes interchangeably. However, this means that the path reported by sqlite3_shared_cache_report doesn't match which causes the test case to fail. Made minor change to test case to hopefully correct this on all platforms. (CVS 5143)
...
FossilOrigin-Name: 5ef61701398ce75e32cfaea2eacf2c3e80832ca0
2008-05-19 20:11:39 +00:00
drh
4b81592a28
Fix sqlite3Atoi64 to return true if handed a number of all zeros. The
...
failure to do this is benign as sqlite3Atoi64() is current used, but that
might change in the future so it is good to go ahead and fix the function
to return the correct result. (CVS 5142)
FossilOrigin-Name: bc90787583dd2dadff72d516de9720d4a36e7fd2
2008-05-19 15:54:59 +00:00
drh
9a855cf852
In the CLI, handle the compilation option -DOS_OS2=0 correctly. (CVS 5141)
...
FossilOrigin-Name: 70793be63c0c6dab42d48c096e0e051e37d7e788
2008-05-19 15:53:34 +00:00
shane
8ef4263135
Added test cases for corrupt 2-10 byte SerialTypeLen values. (CVS 5140)
...
FossilOrigin-Name: 97ed2dd1dc9d8e8f837914277c080160d319591b
2008-05-19 15:37:10 +00:00
danielk1977
2d1a8d2fe6
Disable the column cache when coding values that will be passed to the xFilter() method of a virtual table, in case the xFilter() implementation modifies the type or encoding of the value. Ticket #3121 . (CVS 5139)
...
FossilOrigin-Name: ecbc0d5deddc0ca0d1d2649e0134ee392266027e
2008-05-16 15:40:40 +00:00
danielk1977
1e740c6f88
Check that the encoding of values passed to sqlite3_bind_value() matches that of the database. (CVS 5138)
...
FossilOrigin-Name: e94a2883060b9ef59809ff4de9525d897d95546c
2008-05-16 15:24:58 +00:00
danielk1977
822a51628f
Add more version tags to files that lack them. Ticket #3120 . (CVS 5137)
...
FossilOrigin-Name: 81a8c70ed7a86abf286706fdbc251f31c9c53382
2008-05-16 04:51:54 +00:00
drh
6c3af6e383
Add version tag comments to source files that lack them.
...
Tickets #3118 and #3119 . (CVS 5136)
FossilOrigin-Name: cf1fb2d850c3eebc2f92159a156695b61f023202
2008-05-15 19:43:52 +00:00
danielk1977
59a93791ce
Add the "page_count" pragma. Returns a single integer - the number of pages in the specified database file. (CVS 5135)
...
FossilOrigin-Name: eb6985e69ce2a5e5e7361f6226d1cfc547fd441d
2008-05-15 17:48:20 +00:00
danielk1977
dad31b5e11
If a pager is already in the error-state when CommitPhaseOne() is called, exit early. (CVS 5134)
...
FossilOrigin-Name: 443cf1056c73ae89d0efcc7a462455c078b3a4a8
2008-05-15 11:08:07 +00:00
danielk1977
28bbd22307
Fix a test script bug - not all database handles were being closed by ioerr5.test. (CVS 5133)
...
FossilOrigin-Name: 47652e7b169626e5f3d95f29e867a2e8f68c5025
2008-05-15 09:07:55 +00:00