Commit Graph

5283 Commits

Author SHA1 Message Date
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