]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
16 years agoIn sqlite3AddColumn(), use local variable 'db' instead of 'pParse->db'. (CVS 6056)
danielk1977 [Tue, 23 Dec 2008 11:11:51 +0000 (11:11 +0000)] 
In sqlite3AddColumn(), use local variable 'db' instead of 'pParse->db'. (CVS 6056)

FossilOrigin-Name: 0c53a4c2da31f91947f1347f1d33d0c83b843d26

16 years agoFix a couple of assert() failures that can occur in btree.c and pager.c. (CVS 6055)
danielk1977 [Tue, 23 Dec 2008 10:37:47 +0000 (10:37 +0000)] 
Fix a couple of assert() failures that can occur in btree.c and pager.c. (CVS 6055)

FossilOrigin-Name: ae44e7482476478c8eeacfb80b282f17894530e5

16 years agoFix a reference counting bug in rtree. Ticket #3549. (CVS 6054)
danielk1977 [Mon, 22 Dec 2008 15:04:32 +0000 (15:04 +0000)] 
Fix a reference counting bug in rtree. Ticket #3549. (CVS 6054)

FossilOrigin-Name: bbdc0e9f2481f8d59e05ea282b615f97e09fb471

16 years agoChanges to test scripts so that veryquick.test runs with SQLITE_TEMP_STORE=3 defined...
danielk1977 [Mon, 22 Dec 2008 11:43:35 +0000 (11:43 +0000)] 
Changes to test scripts so that veryquick.test runs with SQLITE_TEMP_STORE=3 defined. Also a fix to stop the same switch causing a crash in the savepoint code. (CVS 6053)

FossilOrigin-Name: ee0e6eae9f984472e44d7ee8f195c6e5d33f2efd

16 years agoAdd a case to permutations.test to run tests with the test_journal.c backend installe...
danielk1977 [Mon, 22 Dec 2008 10:58:46 +0000 (10:58 +0000)] 
Add a case to permutations.test to run tests with the test_journal.c backend installed. Also many fixes to test_journal.c and one quite obscure fix to pager.c. (CVS 6052)

FossilOrigin-Name: bb177e3072ab61d0af7af91660ebe4dafa487b42

16 years agoFix a variable type to prevent a warning in the proxy-locking code. (CVS 6051)
danielk1977 [Mon, 22 Dec 2008 03:36:59 +0000 (03:36 +0000)] 
Fix a variable type to prevent a warning in the proxy-locking code. (CVS 6051)

FossilOrigin-Name: d9595b961800a13c141bebdb8c0a67377f30efad

16 years agoContinue refactoring where.c in preparation for installing OR-clause
drh [Sun, 21 Dec 2008 03:51:16 +0000 (03:51 +0000)] 
Continue refactoring where.c in preparation for installing OR-clause
optimizations. (CVS 6050)

FossilOrigin-Name: 778e91ddb834f6084ecdf3909692b54bb7da8f6d

16 years agoAdd a vfs backend that detects problems like the one addressed by (6043) and (6047...
danielk1977 [Sat, 20 Dec 2008 18:33:59 +0000 (18:33 +0000)] 
Add a vfs backend that detects problems like the one addressed by (6043) and (6047). (CVS 6049)

FossilOrigin-Name: 49172e487610268662c39fc4038032779a41c47f

16 years agoDo not use long long constants in code. Ticket #3547. (CVS 6048)
drh [Sat, 20 Dec 2008 13:18:50 +0000 (13:18 +0000)] 
Do not use long long constants in code.  Ticket #3547. (CVS 6048)

FossilOrigin-Name: 51b3bfc3b9628ca4ec754fa7f23aef7302f890ff

16 years agoFix the crash-followed-by-corruption bug revealed by savepoint4.test. This is actuall...
danielk1977 [Sat, 20 Dec 2008 08:39:57 +0000 (08:39 +0000)] 
Fix the crash-followed-by-corruption bug revealed by savepoint4.test. This is actually the same bug as was fixed by (6043). The fix was not entirely correct. (CVS 6047)

FossilOrigin-Name: 688336266f0aa5630f4f550ae3787a64f39f9cfa

16 years agoSpecify type "void" in the parameter list of functions that take no parameters.
drh [Sat, 20 Dec 2008 02:14:39 +0000 (02:14 +0000)] 
Specify type "void" in the parameter list of functions that take no parameters.
Tickets #3545 and #3546. (CVS 6046)

FossilOrigin-Name: c2228bd14ae54b17450f64357bf835d08c447250

16 years agoEnhanced analysis of OR terms in a WHERE clause. Another step toward being
drh [Sat, 20 Dec 2008 02:06:13 +0000 (02:06 +0000)] 
Enhanced analysis of OR terms in a WHERE clause.  Another step toward being
able to use indices with OR-connected WHERE clause terms. (CVS 6045)

FossilOrigin-Name: c3f7aa019c613e18457f090685725dd8a6a336b9

16 years agoAdd extra crash test cases that stress the savepoint mechanism to savepoint4.test...
danielk1977 [Fri, 19 Dec 2008 18:45:52 +0000 (18:45 +0000)] 
Add extra crash test cases that stress the savepoint mechanism to savepoint4.test. Currently, these tests are causing database corruption which (obviously) needs to be fixed. (CVS 6044)

FossilOrigin-Name: e06a968aa5b17ce12ea179b36a99ad74d274fd2c

16 years agoAdd some crash-tests for savepoint. Fix a bug revealed by these tests. (CVS 6043)
danielk1977 [Fri, 19 Dec 2008 16:31:11 +0000 (16:31 +0000)] 
Add some crash-tests for savepoint. Fix a bug revealed by these tests. (CVS 6043)

FossilOrigin-Name: 6f36c16678b6e3baa5a9d9ceba1a756a8034f3e1

16 years agoAdd the file ext/fts3/README.syntax, containing documentation describing the two...
danielk1977 [Fri, 19 Dec 2008 11:37:38 +0000 (11:37 +0000)] 
Add the file ext/fts3/README.syntax, containing documentation describing the two query syntaxes now supported by fts3. (CVS 6042)

FossilOrigin-Name: ed81ad5a5d22304a4d96e778e8e9094f74c461c0

16 years agoFix the Oracle and MS-Sql command-line terminator logic in the CLI.
drh [Thu, 18 Dec 2008 22:25:13 +0000 (22:25 +0000)] 
Fix the Oracle and MS-Sql command-line terminator logic in the CLI.
Ticket #3544. (CVS 6041)

FossilOrigin-Name: dcc8935fa0ccf86648c22818823bf1daef8f3939

16 years agoIncrease test coverage of new savepoint code. (CVS 6040)
danielk1977 [Thu, 18 Dec 2008 18:31:38 +0000 (18:31 +0000)] 
Increase test coverage of new savepoint code. (CVS 6040)

FossilOrigin-Name: d915718d0b346982d686d131a159b67e28fc02a8

16 years agoAdd savepoint2.test, a file containing savepoint tests similar to tests in trans...
danielk1977 [Thu, 18 Dec 2008 15:45:07 +0000 (15:45 +0000)] 
Add savepoint2.test, a file containing savepoint tests similar to tests in trans.test and avtrans.test. And a few savepoint bug fixes. (CVS 6039)

FossilOrigin-Name: 98a53d91f6c0c2692d3b56687fdaba8eeab0959d

16 years agoFix a bug in icuOpen() in fts2. (CVS 6038)
danielk1977 [Thu, 18 Dec 2008 05:30:26 +0000 (05:30 +0000)] 
Fix a bug in icuOpen() in fts2. (CVS 6038)

FossilOrigin-Name: b9c722bd96b44e0fabd1564ddd982d2aabb7047c

16 years agoUpdate the WHERE clause processing infrastructure in preparation for adding
drh [Wed, 17 Dec 2008 19:22:15 +0000 (19:22 +0000)] 
Update the WHERE clause processing infrastructure in preparation for adding
multi-index OR evaluation. (CVS 6037)

FossilOrigin-Name: 78401b33febf678cfeec2a35514eb4172de420ab

16 years agoAdd the savepoint feature. This feature is largely untested at this point. (CVS 6036)
danielk1977 [Wed, 17 Dec 2008 17:30:26 +0000 (17:30 +0000)] 
Add the savepoint feature. This feature is largely untested at this point. (CVS 6036)

FossilOrigin-Name: 34b56600ec0c5cd7b5faab265750252bc9850e3e

16 years agoFix some strict-aliasing problems in fts3_expr.c. (CVS 6035)
danielk1977 [Wed, 17 Dec 2008 15:49:51 +0000 (15:49 +0000)] 
Fix some strict-aliasing problems in fts3_expr.c. (CVS 6035)

FossilOrigin-Name: 20a4ca5d361ecbb982129171f10cccac4f5ad093

16 years agoModify fts3 to support a more complex expression syntax that allows parenthesis....
danielk1977 [Wed, 17 Dec 2008 15:18:17 +0000 (15:18 +0000)] 
Modify fts3 to support a more complex expression syntax that allows parenthesis. The new syntax is not entirely backwards compatible, so is disabled by default. Use -DSQLITE_ENABLE_FTS3_PARENTHESIS to enable it. (CVS 6034)

FossilOrigin-Name: 7389b9ecb80294569845c40a23e0c832d07f7a45

16 years agoVersion 3.6.7 (CVS 6033)
drh [Tue, 16 Dec 2008 18:15:58 +0000 (18:15 +0000)] 
Version 3.6.7 (CVS 6033)

FossilOrigin-Name: f4f40370fb83d677df3fbf2c51c4bb4a3e5ccc7a

16 years agoFix a compile error in an assert() and a warning with MSVC builds. (CVS 6032)
shane [Tue, 16 Dec 2008 17:20:38 +0000 (17:20 +0000)] 
Fix a compile error in an assert() and a warning with MSVC builds. (CVS 6032)

FossilOrigin-Name: 8b8f6a6ab597e06e60557ab56c6ee7f8522ed570

16 years agoMake sure the memory returned from sqlite3ScratchMalloc() is 8-byte aligned.
drh [Tue, 16 Dec 2008 13:46:29 +0000 (13:46 +0000)] 
Make sure the memory returned from sqlite3ScratchMalloc() is 8-byte aligned.
Ticket #3542. (CVS 6031)

FossilOrigin-Name: 13b56b7ff97c3abc116dae934f6d1330bbb7762d

16 years agoNew hyperlinks added to C interface documentation. No changes to working code. ...
drh [Mon, 15 Dec 2008 22:51:38 +0000 (22:51 +0000)] 
New hyperlinks added to C interface documentation.  No changes to working code. (CVS 6030)

FossilOrigin-Name: 230cb68e07ec791fa4a46dee8506716d52a99426

16 years agoAdd test cases that verify evaluation of randomly generated SQL expressions. (CVS...
drh [Mon, 15 Dec 2008 16:33:29 +0000 (16:33 +0000)] 
Add test cases that verify evaluation of randomly generated SQL expressions. (CVS 6029)

FossilOrigin-Name: 4685ffccd37456fc527a7f7178885a060b474ad8

16 years agoConvert the "~" and "NOT" operators to be two-address instructions.
drh [Mon, 15 Dec 2008 15:27:51 +0000 (15:27 +0000)] 
Convert the "~" and "NOT" operators to be two-address instructions.
Ticket #3541. (CVS 6028)

FossilOrigin-Name: ea9b747efb22fd3f679c3ef86ed51986c5ad9436

16 years agoAdd the example from #3359 to the test suite. (CVS 6027)
danielk1977 [Sun, 14 Dec 2008 14:45:20 +0000 (14:45 +0000)] 
Add the example from #3359 to the test suite. (CVS 6027)

FossilOrigin-Name: 84f8417c0794d3e5cec88f59ea71a7d557044409

16 years agoFix the name of the source algorithm in the comments of the script generators
drh [Sun, 14 Dec 2008 02:55:16 +0000 (02:55 +0000)] 
Fix the name of the source algorithm in the comments of the script generators
for the recently checked-in test cases for integer boundary-value testing. (CVS 6026)

FossilOrigin-Name: adba0f3c01ba2407466d0120c411c398218bdaeb

16 years agoAdd many new integer boundary value tests. Ticket #3536. (CVS 6025)
drh [Fri, 12 Dec 2008 19:19:22 +0000 (19:19 +0000)] 
Add many new integer boundary value tests.  Ticket #3536. (CVS 6025)

FossilOrigin-Name: 45277238d355caa1fbeea67c6c6d1a8f231eabda

16 years agoRework the rowid lookup logic in the query optimizer to fix various
drh [Fri, 12 Dec 2008 17:56:16 +0000 (17:56 +0000)] 
Rework the rowid lookup logic in the query optimizer to fix various
boundary value problems.  Ticket #3536.  Renamed the OP_MoveXX opcodes
to OP_SeekXX. (CVS 6024)

FossilOrigin-Name: e545490a2828f7f703172dda6d2b9f3342dc134a

16 years agoPrevious change to the OP_ForceInt opcode did not work correctly when the
drh [Thu, 11 Dec 2008 20:03:22 +0000 (20:03 +0000)] 
Previous change to the OP_ForceInt opcode did not work correctly when the
input is a negative floating point value.  This change is the fix.
Ticket #3536. (CVS 6023)

FossilOrigin-Name: f6c50f357c302907a5398c551a5c596f7d305031

16 years agoMake sure the OP_ForceInt vdbe opcode does not cause a rowid overflow.
drh [Thu, 11 Dec 2008 19:50:18 +0000 (19:50 +0000)] 
Make sure the OP_ForceInt vdbe opcode does not cause a rowid overflow.
Ticket #3536.  Tests to verify this change will be checked in separately. (CVS 6022)

FossilOrigin-Name: 6a049c6595550c123e77199cf7f3898bfcf40c86

16 years agoGuard against attacks from deliberately corrupted database files. (CVS 6021)
drh [Thu, 11 Dec 2008 16:17:03 +0000 (16:17 +0000)] 
Guard against attacks from deliberately corrupted database files. (CVS 6021)

FossilOrigin-Name: da2ec96422b1f9de2e47d3b8c19ed20579742a9b

16 years agoIncrease the version number to 3.6.7. (CVS 6020)
drh [Thu, 11 Dec 2008 13:08:15 +0000 (13:08 +0000)] 
Increase the version number to 3.6.7. (CVS 6020)

FossilOrigin-Name: 7c367515f86c36b7ec8603754b20f1c7c4a0690a

16 years agoInitialize a local variable so as to avoid a valgrind warning. (CVS 6019)
drh [Thu, 11 Dec 2008 13:05:00 +0000 (13:05 +0000)] 
Initialize a local variable so as to avoid a valgrind warning. (CVS 6019)

FossilOrigin-Name: 0d316160fc9e24262457d330abee40f447ff909e

16 years agoRemoved a few more harmless warnings from MSVC. (CVS 6018)
shane [Thu, 11 Dec 2008 02:58:26 +0000 (02:58 +0000)] 
Removed a few more harmless warnings from MSVC. (CVS 6018)

FossilOrigin-Name: 72fd92bd67ed2b8e193cf3119e60d0a8f1e819c9

16 years agoFix the TCL test harness so that it compiles and runs on OSX with
drh [Thu, 11 Dec 2008 02:56:07 +0000 (02:56 +0000)] 
Fix the TCL test harness so that it compiles and runs on OSX with
SQLITE_ENABLE_LOCKING_STYLE. (CVS 6017)

FossilOrigin-Name: 561d5de16ec07546a3bb691f308fb2495a0d0a43

16 years agoInitialize the yyzerominor constant generated by lemon. (CVS 6016)
drh [Thu, 11 Dec 2008 02:20:43 +0000 (02:20 +0000)] 
Initialize the yyzerominor constant generated by lemon. (CVS 6016)

FossilOrigin-Name: 76c8f6ba87f333f15444ba5444bc675ec4cfd89e

16 years agoMore code obfuscation designed to thwart compiler warning messages. (CVS 6015)
drh [Wed, 10 Dec 2008 23:04:13 +0000 (23:04 +0000)] 
More code obfuscation designed to thwart compiler warning messages. (CVS 6015)

FossilOrigin-Name: 0a1888a7e6fb56e56d8078e7792379d908ba7a70

16 years agoTry to remove compiler warnings from vdbe.c. (CVS 6014)
drh [Wed, 10 Dec 2008 22:32:56 +0000 (22:32 +0000)] 
Try to remove compiler warnings from vdbe.c. (CVS 6014)

FossilOrigin-Name: 50352950df5d5a8b7da8c18b6667b8242a359f7d

16 years agoWork to remove harmless MSVC compiler warnings. (CVS 6013)
shane [Wed, 10 Dec 2008 22:30:24 +0000 (22:30 +0000)] 
Work to remove harmless MSVC compiler warnings. (CVS 6013)

FossilOrigin-Name: 715dcd52c1372c62873cff5db97fdbdfce617808

16 years agoThe strlen30 function in tclsqlite.c should be defined regardless of whether
drh [Wed, 10 Dec 2008 22:18:39 +0000 (22:18 +0000)] 
The strlen30 function in tclsqlite.c should be defined regardless of whether
or not the amalgamation is used. (CVS 6012)

FossilOrigin-Name: d8e8c7e51c09dc4e4d7e45ba1866c78713d6f5aa

16 years agoFix an issue with the new sqlite3Strlen30() introduced by
drh [Wed, 10 Dec 2008 22:15:00 +0000 (22:15 +0000)] 
Fix an issue with the new sqlite3Strlen30() introduced by
check-in (6007).  Additional casts for compiler warnings. (CVS 6011)

FossilOrigin-Name: 258722b6178f60eaccef1675aab3edc456d413a5

16 years agoAdditional work at eliminating silly compiler warnings. (CVS 6010)
drh [Wed, 10 Dec 2008 21:19:56 +0000 (21:19 +0000)] 
Additional work at eliminating silly compiler warnings. (CVS 6010)

FossilOrigin-Name: ea01d43788a75e39c7f03c22681d1a338d52cf0e

16 years agoFixed typo in comment in mkkeywordhash.c. (CVS 6009)
shane [Wed, 10 Dec 2008 20:11:01 +0000 (20:11 +0000)] 
Fixed typo in comment in mkkeywordhash.c. (CVS 6009)

FossilOrigin-Name: b7dd05b403e69caca814ccd8824130f176160cd5

16 years agoAdded option (-l) to lemon parser to have it skip printing line numbers (#line ....
shane [Wed, 10 Dec 2008 20:10:04 +0000 (20:10 +0000)] 
Added option (-l) to lemon parser to have it skip printing line numbers (#line ... ). (CVS 6008)

FossilOrigin-Name: ccb9393a7a10f0970419b860af293b0bdad7f894

16 years agoNever use strlen(). Use our own internal sqlite3Strlen30() which is
drh [Wed, 10 Dec 2008 19:26:22 +0000 (19:26 +0000)] 
Never use strlen().  Use our own internal sqlite3Strlen30() which is
guaranteed to never overflow an integer.  Additional explicit casts to
avoid nuisance warning messages. (CVS 6007)

FossilOrigin-Name: c872d554930ecf221ac2be5f886d5d67bb35288c

16 years agoMore explicit type casting to silence VC++. (CVS 6006)
drh [Wed, 10 Dec 2008 18:03:45 +0000 (18:03 +0000)] 
More explicit type casting to silence VC++. (CVS 6006)

FossilOrigin-Name: 14e6d19c3157ccdce170e769d678c7f472dd3db2

16 years agoRemove or rename local variables that shadow other variables or parameters. (CVS...
drh [Wed, 10 Dec 2008 17:19:59 +0000 (17:19 +0000)] 
Remove or rename local variables that shadow other variables or parameters. (CVS 6005)

FossilOrigin-Name: e7e9fa4fa1b7fc0668f4e3a51873ee5d11893f42

16 years agoAdd explicit casts to silence nuisance warnings from VC++. (CVS 6004)
drh [Wed, 10 Dec 2008 16:45:50 +0000 (16:45 +0000)] 
Add explicit casts to silence nuisance warnings from VC++. (CVS 6004)

FossilOrigin-Name: da1cbfa766f7f379c01f4ac9c1210462d8d7c590

16 years agoUse memcpy() rather than "=" to copy a structure, in order to work around
drh [Wed, 10 Dec 2008 11:49:06 +0000 (11:49 +0000)] 
Use memcpy() rather than "=" to copy a structure, in order to work around
a bug in the XLC compiler on AIX.  Ticket #3344. (CVS 6003)

FossilOrigin-Name: 18bbcafc16bb985a7c74e07ffb9c4f28273a7cfd

16 years agoRemove some obsolete markup from sqlite.h.in. (CVS 6002)
drh [Wed, 10 Dec 2008 11:44:30 +0000 (11:44 +0000)] 
Remove some obsolete markup from sqlite.h.in. (CVS 6002)

FossilOrigin-Name: d1d05e2a8a6e474e4921742ba055200d7f4d21ce

16 years agoReturn an appropriate out-of-memory message when sqlite3_errmsg() is called
drh [Tue, 9 Dec 2008 14:46:09 +0000 (14:46 +0000)] 
Return an appropriate out-of-memory message when sqlite3_errmsg() is called
following an SQLITE_NOMEM error. (CVS 6001)

FossilOrigin-Name: 228ebe4115cfb2deafd504a52a230bf646fcd8f1

16 years agoFinish incomplete edit of resolve.c from check-in (5998). (CVS 6000)
drh [Tue, 9 Dec 2008 14:03:22 +0000 (14:03 +0000)] 
Finish incomplete edit of resolve.c from check-in (5998). (CVS 6000)

FossilOrigin-Name: 0d7e150e8c6cb801e68273c9d0793ce31d1f31fd

16 years agoAdditional test cases for nested subqueries in a WHERE clause. (CVS 5999)
drh [Tue, 9 Dec 2008 13:12:56 +0000 (13:12 +0000)] 
Additional test cases for nested subqueries in a WHERE clause. (CVS 5999)

FossilOrigin-Name: 4f10f19dd1e66cd29b0e1e26506154d670c3bc46

16 years agoA subquery in the result set of a SELECT should be able to look into outer
drh [Tue, 9 Dec 2008 13:04:29 +0000 (13:04 +0000)] 
A subquery in the result set of a SELECT should be able to look into outer
queries to find variable references.  But a subquery in the FROM clause
should not be able to do this.  Ticket #3530. (CVS 5998)

FossilOrigin-Name: be03fa0543044dc46952695e963d9b82afed892b

16 years agoRemoved some harmless compiler warnings and converted some "double" ops to "int"...
shane [Tue, 9 Dec 2008 04:59:00 +0000 (04:59 +0000)] 
Removed some harmless compiler warnings and converted some "double" ops to "int" in date.c. (CVS 5997)

FossilOrigin-Name: 5eb648a0b599c83504b892e2a5cefe6a837d6017

16 years agoGet rid of more silly compiler warnings. (CVS 5996)
drh [Tue, 9 Dec 2008 03:55:14 +0000 (03:55 +0000)] 
Get rid of more silly compiler warnings. (CVS 5996)

FossilOrigin-Name: 59ae0020683766993c38e2b76a436d78d3e4bd63

16 years agoSuppress more silly compiler warnings. (CVS 5995)
drh [Tue, 9 Dec 2008 02:51:23 +0000 (02:51 +0000)] 
Suppress more silly compiler warnings. (CVS 5995)

FossilOrigin-Name: 1522c2c6677b97edfa09dd64b4f9ed139aeb5bec

16 years agoFix compiler warnings in where.c and in the TCL test harness. (CVS 5994)
drh [Tue, 9 Dec 2008 01:32:03 +0000 (01:32 +0000)] 
Fix compiler warnings in where.c and in the TCL test harness. (CVS 5994)

FossilOrigin-Name: 680755dbf01e20569b87068b1515b144903c566e

16 years agoSome minor name refactoring in where.c. Avoid declaring variables before
drh [Mon, 8 Dec 2008 21:37:14 +0000 (21:37 +0000)] 
Some minor name refactoring in where.c.  Avoid declaring variables before
initializing them in the amalgamation because VC++ doesn't like that. (CVS 5993)

FossilOrigin-Name: 6ed696e7c03351514278338fa986539cf0fac178

16 years agoFix a bug in win32 command-line client introduced during efforts to reduce
drh [Mon, 8 Dec 2008 18:27:31 +0000 (18:27 +0000)] 
Fix a bug in win32 command-line client introduced during efforts to reduce
the number of harmless compiler warnings (check-in (5982).) (CVS 5992)

FossilOrigin-Name: 6c0b2e7579ee5504617831a5e8bb6193e283ad30

16 years agoThe amalgamation now compiles cleanly on GCC with options
drh [Mon, 8 Dec 2008 18:19:17 +0000 (18:19 +0000)] 
The amalgamation now compiles cleanly on GCC with options
-pedantic-errors -Wno-long-long. (CVS 5991)

FossilOrigin-Name: 73c7302c5f76a2f61ecd75f8bda69bb500d3119c

16 years agoFix two unused-parameter warnings in the parser. (CVS 5990)
drh [Mon, 8 Dec 2008 16:01:12 +0000 (16:01 +0000)] 
Fix two unused-parameter warnings in the parser. (CVS 5990)

FossilOrigin-Name: cf419d0b01c0144b752f4283ba9668747339b218

16 years agoFix a segfault associated with the column cache that occurs on nested VIEWs.
drh [Mon, 8 Dec 2008 13:42:36 +0000 (13:42 +0000)] 
Fix a segfault associated with the column cache that occurs on nested VIEWs.
Ticket #3527. (CVS 5989)

FossilOrigin-Name: 490138a2012fcb4c859e1cf12a35e314ec1060d2

16 years agoMake sure a memory allocation error did not prevent UTF16 to UTF8 conversion
drh [Sat, 6 Dec 2008 16:46:13 +0000 (16:46 +0000)] 
Make sure a memory allocation error did not prevent UTF16 to UTF8 conversion
prior to doing a string comparison. (CVS 5988)

FossilOrigin-Name: 9d061e20d885bee7ac7875500a0e7c238b540a63

16 years agoMake sure the KeyInfo object attached to a transient table used for
drh [Sat, 6 Dec 2008 16:10:42 +0000 (16:10 +0000)] 
Make sure the KeyInfo object attached to a transient table used for
sorting records the sqlite3 object used for memory allocation, so that
memory allocation failures on UTF16 to UTF8 conversion can be recorded. (CVS 5987)

FossilOrigin-Name: 76246d9f0d4e995f6be6fbd1fa2bcabc1b9566ae

16 years agoMark the hash table enlargement in pcache1.c as a benign-failure malloc. (CVS 5986)
drh [Sat, 6 Dec 2008 14:34:33 +0000 (14:34 +0000)] 
Mark the hash table enlargement in pcache1.c as a benign-failure malloc. (CVS 5986)

FossilOrigin-Name: 5c0fe63a6374abe98e45c11ada54c064c19bbab8

16 years agoMake the minimum allocate size for RowSet objects large enough to accommodate
drh [Fri, 5 Dec 2008 23:40:22 +0000 (23:40 +0000)] 
Make the minimum allocate size for RowSet objects large enough to accommodate
8-byte pointers. (CVS 5985)

FossilOrigin-Name: b74885e0856c46412f7cf4dca4cafb740cb9a28b

16 years agoFix integrity check so that it always reports memory allocation errors that
drh [Fri, 5 Dec 2008 22:40:08 +0000 (22:40 +0000)] 
Fix integrity check so that it always reports memory allocation errors that
it encounters. (CVS 5984)

FossilOrigin-Name: 2a3f5ce14c050b135ab9d2247aee84ca37882c4b

16 years agoMake sure the nOverflow flag in MemPage is reset to zero after every insert. (CVS...
drh [Fri, 5 Dec 2008 20:01:43 +0000 (20:01 +0000)] 
Make sure the nOverflow flag in MemPage is reset to zero after every insert. (CVS 5983)

FossilOrigin-Name: bfde3dae0c7b97308344519ca06cd4b290e8cf47

16 years agoFix harmless compiler warnings. Improved comments in the query optimizer. (CVS 5982)
drh [Fri, 5 Dec 2008 17:17:07 +0000 (17:17 +0000)] 
Fix harmless compiler warnings.  Improved comments in the query optimizer. (CVS 5982)

FossilOrigin-Name: adedd697b475dadaa2eeae0d0413603195c955cf

16 years agoMake use of sqlite3DbMallocSize to maximize the size of growable buffers
drh [Fri, 5 Dec 2008 15:24:15 +0000 (15:24 +0000)] 
Make use of sqlite3DbMallocSize to maximize the size of growable buffers
after each reallocation.  Added new comments and testcase() macros to
where.c. (CVS 5981)

FossilOrigin-Name: 46f2d08959423e130a5b346138311649d92f0fde

16 years agoVariable name changes in the query optimizer for disambiguation and
drh [Fri, 5 Dec 2008 02:36:33 +0000 (02:36 +0000)] 
Variable name changes in the query optimizer for disambiguation and
clarification.  Clear space in boolean vectors for new bit values to
encode new query plan templates. (CVS 5980)

FossilOrigin-Name: 81bd0b5ce8a1cf057064c44e9b5371502cb8c58c

16 years agoExpand table.* properly on a USING or a NATURAL join. Ticket #3522. (CVS 5979)
drh [Fri, 5 Dec 2008 00:00:07 +0000 (00:00 +0000)] 
Expand table.* properly on a USING or a NATURAL join.  Ticket #3522. (CVS 5979)

FossilOrigin-Name: 06d206ef7d5e433ccde347d63dfcd2177545e1fd

16 years agoFix a segfault that can occur in the RowSet object following a malloc
drh [Thu, 4 Dec 2008 22:17:55 +0000 (22:17 +0000)] 
Fix a segfault that can occur in the RowSet object following a malloc
failure. (CVS 5978)

FossilOrigin-Name: cb0f1658d3db7ccf80843d66fa85af8de44710d0

16 years agoReplace the VDBE Fifo object with the new RowSet object. (CVS 5977)
drh [Thu, 4 Dec 2008 20:40:10 +0000 (20:40 +0000)] 
Replace the VDBE Fifo object with the new RowSet object. (CVS 5977)

FossilOrigin-Name: 39a0750b49cf55e9c0927169ca47db909f5c16ea

16 years agoMake sure dot-lock is fully enabled when SQLITE_ENABLE_LOCKING_STYLE is
drh [Thu, 4 Dec 2008 12:34:15 +0000 (12:34 +0000)] 
Make sure dot-lock is fully enabled when SQLITE_ENABLE_LOCKING_STYLE is
disabled.  Fix compiler warnings when SQLITE_ENABLE_LOCKING_STYLE is
disabled. (CVS 5976)

FossilOrigin-Name: 4697249fcc6041ba7d2fb89589c855a8bec71eb2

16 years agoFix a memory leak in the shell that occurs when a ".import" command fails.
drh [Thu, 4 Dec 2008 12:26:00 +0000 (12:26 +0000)] 
Fix a memory leak in the shell that occurs when a ".import" command fails.
Ticket #3517 (CVS 5975)

FossilOrigin-Name: cb9c15431c53b13b70d006d8c47741ebc1caaca3

16 years agoAlways enable the OP_Blob opcode in the VDBE even when
drh [Thu, 4 Dec 2008 12:17:30 +0000 (12:17 +0000)] 
Always enable the OP_Blob opcode in the VDBE even when
SQLITE_OMIT_BLOB_LITERAL is defined, since that opcode is used for other
purposes as well.  Ticket #3518. (CVS 5974)

FossilOrigin-Name: 760333de65328281137e02423904f860df572391

16 years agoAllow the entire FROM clause of a SELECT statement to be in parentheses. (CVS 5973)
drh [Wed, 3 Dec 2008 23:23:40 +0000 (23:23 +0000)] 
Allow the entire FROM clause of a SELECT statement to be in parentheses. (CVS 5973)

FossilOrigin-Name: 72ebc8cbe00f77f7864146de7c0954c4f1c59b8d

16 years agoFix a missing forward declaration that is needed when
drh [Wed, 3 Dec 2008 22:48:32 +0000 (22:48 +0000)] 
Fix a missing forward declaration that is needed when
SQLITE_PREFER_PROXY_LOCKING is defined. (CVS 5972)

FossilOrigin-Name: 24235300b3f64f0396e1016afbe31aec9ea69b62

16 years agoReorganize the proxy-locking method in os_unix.c. Additional cleanup. (CVS 5971)
drh [Wed, 3 Dec 2008 22:32:44 +0000 (22:32 +0000)] 
Reorganize the proxy-locking method in os_unix.c.  Additional cleanup. (CVS 5971)

FossilOrigin-Name: 31f6090e22b54d657afc8c23171d000d47850205

16 years agoMake os_unix compile with SQLITE_ENABLE_PROXY_LOCKING (CVS 5970)
aswift [Wed, 3 Dec 2008 21:26:19 +0000 (21:26 +0000)] 
Make os_unix compile with SQLITE_ENABLE_PROXY_LOCKING (CVS 5970)

FossilOrigin-Name: 3efedac6aa4f544d40c2f782109d4e1795e449a0

16 years agoContinue with the cleanup of os_unix.c. (CVS 5969)
drh [Wed, 3 Dec 2008 19:34:47 +0000 (19:34 +0000)] 
Continue with the cleanup of os_unix.c. (CVS 5969)

FossilOrigin-Name: 215d36ea89078036fb66b5154f054613b735dab3

16 years agoFully initialize the unused bytes of the buffer that will become the journal
drh [Sat, 29 Nov 2008 22:49:23 +0000 (22:49 +0000)] 
Fully initialize the unused bytes of the buffer that will become the journal
file header, in order to silence a complaint from valgrind. (CVS 5968)

FossilOrigin-Name: 2822cbb960dbef9d30586ee112d74f9f566309fa

16 years agoContinuing to refactor os_unix.c. This is an incremental check-in. (CVS 5967)
drh [Sat, 29 Nov 2008 02:20:26 +0000 (02:20 +0000)] 
Continuing to refactor os_unix.c.  This is an incremental check-in. (CVS 5967)

FossilOrigin-Name: c13df0311ef4f6a510f42105293f7c53c323fda8

16 years agoContinuing work on the os_unix.c refactoring. Removed all of the
drh [Sat, 29 Nov 2008 00:56:52 +0000 (00:56 +0000)] 
Continuing work on the os_unix.c refactoring.  Removed all of the
LOCKING_STYLE_* constants and instead pass around pointers to the
underlying sqlite3_io_method objects. (CVS 5966)

FossilOrigin-Name: 1017d2fb1935a278ef442030bf7bdf5e112c566a

16 years agoFirst step in refactoring os_unix.c. This is work in progress. The code
drh [Fri, 28 Nov 2008 15:37:20 +0000 (15:37 +0000)] 
First step in refactoring os_unix.c.  This is work in progress.  The code
compiles and runs on Linux and MacOSX (as long as SQLITE_ENABLE_LOCKING_STYLE
is turned off), but there are a few test failures. (CVS 5965)

FossilOrigin-Name: 7825cd63e5cb390a9c2c05957ebc9b189612f04a

16 years agoAdd 19 new assert() statements in btree.c that attempt to detect writing to
drh [Thu, 27 Nov 2008 02:22:10 +0000 (02:22 +0000)] 
Add 19 new assert() statements in btree.c that attempt to detect writing to
a cache page which is not writeable. (CVS 5964)

FossilOrigin-Name: f9c7359065829b016d8cd04304c02509c254fe05

16 years agoexpected error message has trailing space (CVS 5963)
pweilbacher [Wed, 26 Nov 2008 20:09:14 +0000 (20:09 +0000)] 
expected error message has trailing space (CVS 5963)

FossilOrigin-Name: 165bc2d7658e14eda8b375329e4286dc4d048f3a

16 years agoremove warning in os2Sync() with SQLITE_NO_SYNC set (CVS 5962)
pweilbacher [Wed, 26 Nov 2008 20:03:21 +0000 (20:03 +0000)] 
remove warning in os2Sync() with SQLITE_NO_SYNC set (CVS 5962)

FossilOrigin-Name: 68a51f67afd54f1c423206a92b36a33af071d5e1

16 years agomake os2Randomness() act the same as other platforms with SQLITE_TEST (all zeroed...
pweilbacher [Wed, 26 Nov 2008 19:56:48 +0000 (19:56 +0000)] 
make os2Randomness() act the same as other platforms with SQLITE_TEST (all zeroed buffer) (CVS 5961)

FossilOrigin-Name: 5d189df39a3a5e99372826f87f9f20bbd92f1565

16 years agoFix the test condition for the test cases added to prevent regressions of
drh [Wed, 26 Nov 2008 13:44:30 +0000 (13:44 +0000)] 
Fix the test condition for the test cases added to prevent regressions of
ticket #3508. (CVS 5957)

FossilOrigin-Name: 4e94aa3bedc6dba003a2a4ecbba9c11c465eab4f

16 years agoFix an obscure memory leak that can follow an IO error. (CVS 5956)
danielk1977 [Wed, 26 Nov 2008 07:40:30 +0000 (07:40 +0000)] 
Fix an obscure memory leak that can follow an IO error. (CVS 5956)

FossilOrigin-Name: 8271229c66c72c344ad7afb901b88d9cdaaa6f43

16 years agoFix a couple of assert() failures provoked by running with a small default cache...
danielk1977 [Wed, 26 Nov 2008 07:25:52 +0000 (07:25 +0000)] 
Fix a couple of assert() failures provoked by running with a small default cache-size (64 pages). (CVS 5955)

FossilOrigin-Name: 1a66481a37dd9a21673c0ffb3df2be0614fe9f63

16 years agoMove the definition of function transferOwnership() in os_unix.c to below the static...
danielk1977 [Tue, 25 Nov 2008 12:07:40 +0000 (12:07 +0000)] 
Move the definition of function transferOwnership() in os_unix.c to below the static functions it calls. (CVS 5954)

FossilOrigin-Name: 622cb59791ab9f61c2e5131cb6ece5e75cdc9fae