]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
15 years agoUpdate maxRow size after shrinking the row buffer (CSV). csv_ext
shaneh [Thu, 5 Nov 2009 04:14:30 +0000 (04:14 +0000)] 
Update maxRow size after shrinking the row buffer (CSV).

FossilOrigin-Name: d474195a997b9d94bea8976738c942662f7c4751

15 years agoRemoved line limit on rows.
shaneh [Thu, 5 Nov 2009 04:01:04 +0000 (04:01 +0000)] 
Removed line limit on rows.

FossilOrigin-Name: ec08b15f77741efd38dadd6aff492ccbb841471e

15 years agoInitial implementation of a virtual table for CSV files.
shaneh [Thu, 5 Nov 2009 02:34:42 +0000 (02:34 +0000)] 
Initial implementation of a virtual table for CSV files.

FossilOrigin-Name: 90e63b7d845bacc9a1a1db13c1e9a406e5306faa

15 years agoRemove "const" from parameter of sqlite3BtreeFactory() to avoid a compiler
drh [Wed, 4 Nov 2009 13:30:01 +0000 (13:30 +0000)] 
Remove "const" from parameter of sqlite3BtreeFactory() to avoid a compiler
warning.

FossilOrigin-Name: eb7a544fe49d1626bacecfe53ddc03fe082e3243

15 years agoCreate a new datatype "ynVar" to hold "nVar" (number of variable) values.
drh [Wed, 4 Nov 2009 13:17:14 +0000 (13:17 +0000)] 
Create a new datatype "ynVar" to hold "nVar" (number of variable) values.
This is normally 16-bits can can be 32-bits if SQLITE_MAX_VARIABLE_NUMBER
is large enough.

FossilOrigin-Name: 24a4d520d540d92b611abc4eb57dc6da9be4eac6

15 years agoReport errors back up to the ATTACH command if the codec fails to initialize.
drh [Wed, 4 Nov 2009 01:56:27 +0000 (01:56 +0000)] 
Report errors back up to the ATTACH command if the codec fails to initialize.

FossilOrigin-Name: a6c696102eb483080b0a1d31b85f6b5f85c3efbf

15 years agoFix compiler warnings on MSVC build.
shane [Tue, 3 Nov 2009 19:42:30 +0000 (19:42 +0000)] 
Fix compiler warnings on MSVC build.

FossilOrigin-Name: 01c4b5b84ec7ce589e20ea66e80011f092ab32f0

15 years agoEnhancements to lemon to generate more compact action tables and to avoid
drh [Tue, 3 Nov 2009 19:18:31 +0000 (19:18 +0000)] 
Enhancements to lemon to generate more compact action tables and to avoid
making array bounds tests that can never fail on action table calculations.

FossilOrigin-Name: 27d8e684db4651155c4bcb8bb44bf1c692b8c48b

15 years agoForce all qsort() calls in mkkeywordhash.c to be stable so that we get
drh [Tue, 3 Nov 2009 13:08:16 +0000 (13:08 +0000)] 
Force all qsort() calls in mkkeywordhash.c to be stable so that we get
predictable results on different platforms.

FossilOrigin-Name: 3b02df27ab63936226a90098d88535ed19c2b782

15 years agoAdjust the lemon implementation so that it always computes the same PDA
drh [Tue, 3 Nov 2009 13:02:25 +0000 (13:02 +0000)] 
Adjust the lemon implementation so that it always computes the same PDA
regardless of qsort() implementation on the host platform.  In other words,
make all sorts in lemon stable.

FossilOrigin-Name: d66a0f31ebcc56e6f0f462b3db6aab54f7fab816

15 years agoAll SQLITE_MAX_VARIABLE_NUMBER to exceed 32767. The sizes of some structures
drh [Tue, 3 Nov 2009 01:22:07 +0000 (01:22 +0000)] 
All SQLITE_MAX_VARIABLE_NUMBER to exceed 32767.  The sizes of some structures
increase when the compile-time parameter is configured this way.

FossilOrigin-Name: 16a24b4485420bdf30d3c8e22cfbaf008e07df02

15 years agoBug fix in the recent changes to mkopcodeh.awk.
drh [Mon, 2 Nov 2009 18:44:58 +0000 (18:44 +0000)] 
Bug fix in the recent changes to mkopcodeh.awk.

FossilOrigin-Name: 6610cac435428434bc978d5e4df92aa1e431240b

15 years agoUpdate the generator AWK script for opcodes.h so that it always generates
drh [Mon, 2 Nov 2009 18:14:50 +0000 (18:14 +0000)] 
Update the generator AWK script for opcodes.h so that it always generates
opcode numbers in the same order and is not dependent on the hash order
of opcode names within AWK.

FossilOrigin-Name: e730195f52429dc1bc4c1559880effd68e3eced9

15 years agoDo not insert the date and time of generation into the amalgamation.
drh [Mon, 2 Nov 2009 18:01:50 +0000 (18:01 +0000)] 
Do not insert the date and time of generation into the amalgamation.

FossilOrigin-Name: 9f6cf13dfbe6f1fe0c05a9c5df557ae20dc08cbd

15 years agoUpdate the configure script for version 3.6.20.
drh [Mon, 2 Nov 2009 17:40:07 +0000 (17:40 +0000)] 
Update the configure script for version 3.6.20.

FossilOrigin-Name: f19cb105d929f0a56f9597b6eb33ad96d0f7eddc

15 years agoComment changes in support of better documentation. No changes to code.
drh [Mon, 2 Nov 2009 15:51:52 +0000 (15:51 +0000)] 
Comment changes in support of better documentation.  No changes to code.

FossilOrigin-Name: 79ab4714e408d01103b277c234b10db50a50352a

15 years agoFix compiler warnings. Better comments on some variables associated with
drh [Sun, 1 Nov 2009 19:26:59 +0000 (19:26 +0000)] 
Fix compiler warnings.  Better comments on some variables associated with
LIKE/GLOB processing in the query planner.

FossilOrigin-Name: cfa2db0ff7a94e7f66c35f672ee41cadd45a6dd7

15 years agoIncrease the version number to 3.6.20.
drh [Fri, 30 Oct 2009 14:27:14 +0000 (14:27 +0000)] 
Increase the version number to 3.6.20.

FossilOrigin-Name: 612952743da28e651512547fc0d3925f4c698eb4

15 years agoAvoid storing the result register for EXISTS and SELECT in any field of
drh [Fri, 30 Oct 2009 13:25:56 +0000 (13:25 +0000)] 
Avoid storing the result register for EXISTS and SELECT in any field of
the Expr object - simply return the register number as the return value
of the function that codes those expressions.

FossilOrigin-Name: 7253f8fad1efe6b88666f0f8740d247ff07a7640

15 years agoReduce the memory required by prepared statements that use the IN operator
drh [Thu, 29 Oct 2009 13:48:10 +0000 (13:48 +0000)] 
Reduce the memory required by prepared statements that use the IN operator
with a list on the right and an INTEGER PRIMARY KEY on the left.

FossilOrigin-Name: e7984ad2f7e4be30e7198ebd6609a7f6177513e2

15 years agoMinor updates and corrections to comments in btreeInt.h. No changes to code.
drh [Tue, 27 Oct 2009 18:06:10 +0000 (18:06 +0000)] 
Minor updates and corrections to comments in btreeInt.h.  No changes to code.

FossilOrigin-Name: ad949fa1acb4546fe4f2a448025579cc374dd8dd

15 years agoRemove additional obsolete code from the sqlite3_release_memory() logic.
drh [Mon, 26 Oct 2009 22:32:55 +0000 (22:32 +0000)] 
Remove additional obsolete code from the sqlite3_release_memory() logic.

FossilOrigin-Name: 2eeb6ed818dac240afe761b4e7c11e961255bf33

15 years agoRemove some obsolete code within #if 0 that was causing developer concern.
drh [Mon, 26 Oct 2009 22:08:21 +0000 (22:08 +0000)] 
Remove some obsolete code within #if 0 that was causing developer concern.

FossilOrigin-Name: 1d64e9453fb59d2bb1b5cb0cbacaf135b8f928c3

15 years agoFix a compiler warning that occurs when building the TCL interface.
drh [Sat, 24 Oct 2009 15:51:33 +0000 (15:51 +0000)] 
Fix a compiler warning that occurs when building the TCL interface.

FossilOrigin-Name: fc36034bdc3b21e91f24be812e103da26f5d7d5d

15 years agoAnother attempt at getting the pTail pointer computations correct for
drh [Sat, 24 Oct 2009 03:04:10 +0000 (03:04 +0000)] 
Another attempt at getting the pTail pointer computations correct for
sqlite3_prepare16().  Ticket [3fe897352e].

FossilOrigin-Name: a96b4e8c01d167d35b9ec08ee6603e52ead601b6

15 years agoIn shell, modified to not print informational messages during startup while in "batch...
shane [Sat, 24 Oct 2009 02:06:14 +0000 (02:06 +0000)] 
In shell, modified to not print informational messages during startup while in "batch mode".
Ticket [2cb66577f6].

FossilOrigin-Name: e3898e25cf0ea870612eeaca6af2396f0eab0e07

15 years agoIn shell, changed ".tables" command to not add '%' to specified pattern. This is...
shane [Sat, 24 Oct 2009 02:00:07 +0000 (02:00 +0000)] 
In shell, changed ".tables" command to not add '%' to specified pattern.  This is consistent
with other commands that take a LIKE pattern (.dump, .schema, .indices).
Updated internal help to better describe LIKE pattern usage.
Fixed a few more inconsistencies in error messages. Ticket [6da68f691b].

FossilOrigin-Name: 7201244e67c197f16d6752cc0fa7232a9664381e

15 years agoCheck-in [19064d7cea] broke the pTail return on sqlite3_prepare16() when
drh [Sat, 24 Oct 2009 01:55:14 +0000 (01:55 +0000)] 
Check-in [19064d7cea] broke the pTail return on sqlite3_prepare16() when
the SQL contained surrogates. This check-in restores correct function.
Part of ticket [3fe897352e].

FossilOrigin-Name: 65b1e3a4c31f6cb6fd3f600701658b0cdbee603f

15 years agoMake sure that UTF16 to UTF8 conversions to not read past the end of the
drh [Fri, 23 Oct 2009 18:15:46 +0000 (18:15 +0000)] 
Make sure that UTF16 to UTF8 conversions to not read past the end of the
UTF16 input buffer if the last two bytes of the UTF16 happen to be the
first half of a surrogate pair.  Ticket [3fe897352e]

FossilOrigin-Name: 19064d7cea838e1a93fe63743ed247f440679e97

15 years agoIn shell, ensure that do_meta_command() returns consistent error values.
shane [Fri, 23 Oct 2009 01:27:39 +0000 (01:27 +0000)] 
In shell, ensure that do_meta_command() returns consistent error values.
Adjusted the text of some error message to be more consistent.
Ticket [beb2dd69ad].

FossilOrigin-Name: 1ebac9edddd28bdbbd9815fdb64eb9129f39f94a

15 years agoIn shell, modified "import" handling to ensure error code returned correctly on exit.
shane [Fri, 23 Oct 2009 00:37:15 +0000 (00:37 +0000)] 
In shell, modified "import" handling to ensure error code returned correctly on exit.
Ticket [bd770b2c52].

FossilOrigin-Name: 009efad0f4293dd08a6f2f16d8eb9e94e2f962ca

15 years agoIn shell, reworked .header and .echo handling.
shane [Thu, 22 Oct 2009 21:23:35 +0000 (21:23 +0000)] 
In shell, reworked .header and .echo handling.
Updated shell_exec() to (really) handle multiple statements.
Tickets [72adc99de9], [7b61b6c6ce], and [eb620916be].

FossilOrigin-Name: 790402c150e2026cd0c147a4cadbe9b9ab97b688

15 years agoMerge the MD5 checksum logic into the TCL interface. This facilitates building
drh [Thu, 22 Oct 2009 20:52:05 +0000 (20:52 +0000)] 
Merge the MD5 checksum logic into the TCL interface.  This facilitates building
a tclsh that contains both SQLite and MD5.  The plan is to use this
augmented tclsh to help build the documentation.

FossilOrigin-Name: a024c0a85b6f2288c455a7192f6ca7a8493b621a

15 years agoAdd some sample requirement implementation comments to where.c.
drh [Thu, 22 Oct 2009 20:50:36 +0000 (20:50 +0000)] 
Add some sample requirement implementation comments to where.c.

FossilOrigin-Name: 9854ad00aed08793ae7ba3c2cfbab7a2dba4dcb8

15 years agoIn shell, in shell_exec() logic, use type info if available when
shane [Thu, 22 Oct 2009 18:12:58 +0000 (18:12 +0000)] 
In shell, in shell_exec() logic, use type info if available when
outputting in "insert" mode for other types in addition to blobs.
Changed shell_exec() to use sqlite_prepare_v2().  Ticket [72adc99de9].

FossilOrigin-Name: ab99faca6ce57a5e37405dfc8dc55d149cf3f8a3

15 years agoUpdated shell to output blobs in X'1234' form when in "insert" mode. Ticket [72adc99...
shane [Thu, 22 Oct 2009 17:30:15 +0000 (17:30 +0000)] 
Updated shell to output blobs in X'1234' form when in "insert" mode.  Ticket [72adc99de9].

FossilOrigin-Name: a2ad9e6363308b7137fcb1916769151b96933cdb

15 years agoAdd markings on test evidence for R-30323-21917.
drh [Thu, 22 Oct 2009 00:20:17 +0000 (00:20 +0000)] 
Add markings on test evidence for R-30323-21917.

FossilOrigin-Name: e51af74c3aeb82604841cc83a490351d1422e838

15 years agoMention the sqlite3_column_count() function on the same documentation page
drh [Thu, 22 Oct 2009 00:14:05 +0000 (00:14 +0000)] 
Mention the sqlite3_column_count() function on the same documentation page
with all of the other sqlite3_column... interfaces.

FossilOrigin-Name: 5354ace55f448d10128e2bfe4b904a1441e3bf10

15 years agoMerge accidental fork back to trunk.
shane [Wed, 21 Oct 2009 14:33:03 +0000 (14:33 +0000)] 
Merge accidental fork back to trunk.

FossilOrigin-Name: f63397ad6c32f575fe33b2f7dd22380cd1f51f1d

15 years agoModified shell to call output_html_string() for header values in .mode html.
shane [Wed, 21 Oct 2009 14:11:48 +0000 (14:11 +0000)] 
Modified shell to call output_html_string() for header values in .mode html.
Updated output_html_string() to support the 5 basic HTML entities (<,>,&,',").
Ticket [dc3a6e5b31].

FossilOrigin-Name: c8815fcd88d17b2864e689c84eb8a63ef242ff04

15 years agoMade detectSchemaProblem function and aSchemaTable array static. Ticket [6f8b0c5855].
shane [Wed, 21 Oct 2009 13:53:58 +0000 (13:53 +0000)] 
Made detectSchemaProblem function and aSchemaTable array static. Ticket [6f8b0c5855].

FossilOrigin-Name: c6f22f3e38018246a2add1a509aa6c5c55b7e0be

15 years agoAdd evidence marks to parse.y. Fix a broken evidence link in e_fkey.tcl.
drh [Wed, 21 Oct 2009 13:48:24 +0000 (13:48 +0000)] 
Add evidence marks to parse.y.  Fix a broken evidence link in e_fkey.tcl.

FossilOrigin-Name: 0441d28e84af20e3a98a07a43471784ac09c78db

15 years agoFor the shell, changed the output of the errors on lines 2910 and 2914 to goto
shane [Wed, 21 Oct 2009 03:56:54 +0000 (03:56 +0000)] 
For the shell, changed the output of the errors on lines 2910 and 2914 to goto
stderr.  I left the timer values going to stdout as all of the other interactive
shell commands (startup banner, help, etc.) go to stdout and I felt this was more
consistent.  Ticket 43db771bb2.

FossilOrigin-Name: 8a8eeb0c5af4bbeafd9864b03557eb9cd32f09ce

15 years agoFor Windows version of shell, add support for .timer command
shane [Wed, 21 Oct 2009 03:42:58 +0000 (03:42 +0000)] 
For Windows version of shell, add support for .timer command
using the GetProcessTimes() API if available (in the same way
getrusage() is used on UNIX.) Ticket 89668ca167.

FossilOrigin-Name: 83216fbe904425f5b15d1ae689cea9d13670e979

15 years agoFor Windows VFS, modified xGetLastError() to call FormatMessage()
shane [Wed, 21 Oct 2009 02:00:47 +0000 (02:00 +0000)] 
For Windows VFS, modified xGetLastError() to call FormatMessage()
with the FORMAT_MESSAGE_IGNORE_INSERTS option.  Additionally updated
to ensure strings are returned as UTF8.  Ticket 39c85e8a4e.

FossilOrigin-Name: 761396f8cb79be34853ba698a65af54874c3c10e

15 years agoClarify the use of sqlite3_shutdown().
drh [Tue, 20 Oct 2009 15:27:55 +0000 (15:27 +0000)] 
Clarify the use of sqlite3_shutdown().
Ticket [f9af981dd2a2].
Comment changes only - no changes to code.

FossilOrigin-Name: b2aa48b52f140ad722001de686c5b2f802e9babd

15 years agoFix the VACUUM command so that when the MAIN and TEMP databases have
drh [Tue, 20 Oct 2009 15:01:58 +0000 (15:01 +0000)] 
Fix the VACUUM command so that when the MAIN and TEMP databases have
identically named tables, content from the TEMP database does not
accidently overwrite MAIN database content.
Ticket [d82e3f3721296e905d7e8c9dee718f71a826b0eb].
Note that this bug could potentially lead to database corruption.

FossilOrigin-Name: 0bbd8d72ec66cbe11c2548a04ad478202b2b69b6

15 years agoRemove all mention of sqlite3_next_stmt() from the documentation of
drh [Tue, 20 Oct 2009 14:23:09 +0000 (14:23 +0000)] 
Remove all mention of sqlite3_next_stmt() from the documentation of
sqlite3_close().

FossilOrigin-Name: f494ed38a8d3fabb7a064ba4a860d5288c5a571b

15 years agoUpdate documentation on the sqlite3_prepare_v2() interface. No changes to code.
drh [Tue, 20 Oct 2009 14:08:41 +0000 (14:08 +0000)] 
Update documentation on the sqlite3_prepare_v2() interface.  No changes to code.

FossilOrigin-Name: 3b00e769cd30aa50a75f82babb7d2cc90aeb1238

15 years agoFix cases where modifying bound variables using the clear_bindings() or transfer_bind...
dan [Tue, 20 Oct 2009 07:01:24 +0000 (07:01 +0000)] 
Fix cases where modifying bound variables using the clear_bindings() or transfer_bindings() APIs can invalidate a query plan.

FossilOrigin-Name: e6808c988c9cd7b2db23f18b5fe2177151b6f586

15 years agoRemove an unreachable condition in the WHERE clause processing of bound
drh [Mon, 19 Oct 2009 22:41:06 +0000 (22:41 +0000)] 
Remove an unreachable condition in the WHERE clause processing of bound
parameters and replace it with an assert(), for test coverage.

FossilOrigin-Name: 3bcd78a1d76897d1bd5ad4cea52c6a65612ce433

15 years agoFix an incorrect assert() in vdbeUnbind().
drh [Mon, 19 Oct 2009 20:15:38 +0000 (20:15 +0000)] 
Fix an incorrect assert() in vdbeUnbind().

FossilOrigin-Name: 651c1efb998b34f218694c45865fbe20b837a2ac

15 years agoFix an assert() that may fail if sqlite3_step() is called on a statement after a...
dan [Mon, 19 Oct 2009 18:30:34 +0000 (18:30 +0000)] 
Fix an assert() that may fail if sqlite3_step() is called on a statement after a previous call has already returned SQLITE_SCHEMA.

FossilOrigin-Name: 63bf73452de5a9d03e625e1888444a5355063b74

15 years agoRemove the sqlite3_reoptimize() API. The same functionality is now provided automatic...
dan [Mon, 19 Oct 2009 18:11:09 +0000 (18:11 +0000)] 
Remove the sqlite3_reoptimize() API. The same functionality is now provided automatically to queries prepared using prepare_v2().

FossilOrigin-Name: 2c50b3d5aab7cd8cc841d61f8c3b2b34d2f0b54b

15 years agoWhen generating WHERE clause terms internally for NATURAL and USING joins, identify...
dan [Mon, 19 Oct 2009 15:52:32 +0000 (15:52 +0000)] 
When generating WHERE clause terms internally for NATURAL and USING joins, identify the table by its position in the FROM list, not by its name or alias. Fix for [b73fb0bd64].

FossilOrigin-Name: 6fe6371175482d38ac4aeea994c7b20c18b7de01

15 years agoUse 64-bit arithmetic in the xRead() method of asyncRead. Fix for [94c04eaadb].
dan [Mon, 19 Oct 2009 07:50:25 +0000 (07:50 +0000)] 
Use 64-bit arithmetic in the xRead() method of asyncRead. Fix for [94c04eaadb].

FossilOrigin-Name: ca3e41b0574cfd8d971c2be2114e58273a531970

15 years agoFix a problem in the icu.test script.
dan [Sat, 17 Oct 2009 14:19:29 +0000 (14:19 +0000)] 
Fix a problem in the icu.test script.

FossilOrigin-Name: 8a21fdaf6a89f74b040ea0c6bb996ac1c6fcd369

15 years agoMake sure the target register is allocated before adding the bogus
drh [Sat, 17 Oct 2009 13:13:02 +0000 (13:13 +0000)] 
Make sure the target register is allocated before adding the bogus
OP_Variable opcode in isLikeOrGlob().  Bugfix for the new
sqlite3_reoptimize() logic.

FossilOrigin-Name: e74f8dc436213b7ef754adcab5ef7554d774474c

15 years agoAdd documentation comment for new experimental API sqlite3_reoptimize().
dan [Sat, 17 Oct 2009 08:26:29 +0000 (08:26 +0000)] 
Add documentation comment for new experimental API sqlite3_reoptimize().

FossilOrigin-Name: c48f8ffedc30841aa4994eb925d09c2ee97a864d

15 years agoMerge the sqlite3_reoptimize() changes into the trunk.
drh [Fri, 16 Oct 2009 16:21:51 +0000 (16:21 +0000)] 
Merge the sqlite3_reoptimize() changes into the trunk.

FossilOrigin-Name: 50136840d54674c239613265ebbacaabf215f4e2

15 years agoFix a problem in the analyze3.test script.
dan [Fri, 16 Oct 2009 15:59:35 +0000 (15:59 +0000)] 
Fix a problem in the analyze3.test script.

FossilOrigin-Name: 61174aea74db59f6792e275aa366b7f0e1f2270b

15 years agoRemove a mutex reference leak from sqlite3_reoptimize().
dan [Fri, 16 Oct 2009 15:19:08 +0000 (15:19 +0000)] 
Remove a mutex reference leak from sqlite3_reoptimize().

FossilOrigin-Name: 9f0937066184421f23453ceb451fd726c75cb593

15 years agoComment cleanup in btree.c.
drh [Fri, 16 Oct 2009 15:05:18 +0000 (15:05 +0000)] 
Comment cleanup in btree.c.

FossilOrigin-Name: 32966ba4796e70d0afcff6abdda9bdcba08b098a

15 years agoExperimental fix for [f777251dc7]. This may be changed yet.
dan [Fri, 16 Oct 2009 14:55:03 +0000 (14:55 +0000)] 
Experimental fix for [f777251dc7]. This may be changed yet.

FossilOrigin-Name: 174477bca05d019e663fd2b7cd031189ab2e010a

15 years agoFix comment typos in btreeInt.h.
drh [Fri, 16 Oct 2009 13:23:33 +0000 (13:23 +0000)] 
Fix comment typos in btreeInt.h.

FossilOrigin-Name: 550566a75fc79e3662431ba493af853b522d8850

15 years agoAdd the experimental sqlite3_reoptimize() API.
dan [Thu, 15 Oct 2009 18:35:38 +0000 (18:35 +0000)] 
Add the experimental sqlite3_reoptimize() API.

FossilOrigin-Name: 9bd6f3d8864d422fe42074688b191915b27ad8ea

15 years agoVersion 3.6.19 release candidate
drh [Wed, 14 Oct 2009 11:33:54 +0000 (11:33 +0000)] 
Version 3.6.19 release candidate

FossilOrigin-Name: c1d499afc50d54b376945b4efb65c56c787a073d

15 years agoUpdate the configure script for version 3.6.19.
drh [Tue, 13 Oct 2009 22:47:13 +0000 (22:47 +0000)] 
Update the configure script for version 3.6.19.

FossilOrigin-Name: ac19dbc6a208be2313e47cbcc0b2a0d8d04bae4c

15 years agoFixed warnings with MSVC compile.
drh [Tue, 13 Oct 2009 19:19:23 +0000 (19:19 +0000)] 
Fixed warnings with MSVC compile.

FossilOrigin-Name: e0aa50c382a56bb02eaa589619b7e670006a26b3

15 years agoFix a typo in the test script added for ticket [5ee23731f15].
drh [Tue, 13 Oct 2009 18:49:53 +0000 (18:49 +0000)] 
Fix a typo in the test script added for ticket [5ee23731f15].

FossilOrigin-Name: d0f55b5c3b1a85d837cd1d8a2f089c6bcf5a8c0d

15 years agoUpdate the TCL wrapper to provide a non-NULL objProc pointer to the
drh [Tue, 13 Oct 2009 18:38:34 +0000 (18:38 +0000)] 
Update the TCL wrapper to provide a non-NULL objProc pointer to the
Tcl_NRCreateCommand() interface.  The TCL gurus say this is needed to
support legacy TCL extensions.

FossilOrigin-Name: 1b3cfa01dd7fb9a48f0008f5afd974db61c30cff

15 years agoAdd a test case to verify that ticket [5ee23731f15] has been fixed.
drh [Tue, 13 Oct 2009 15:42:48 +0000 (15:42 +0000)] 
Add a test case to verify that ticket [5ee23731f15] has been fixed.

FossilOrigin-Name: f894ebf86d6bafcd1461f104f5f677b3b6a3aa1a

15 years agoWhen a write transaction fails to being because the database is read-only,
drh [Tue, 13 Oct 2009 15:36:51 +0000 (15:36 +0000)] 
When a write transaction fails to being because the database is read-only,
fail right away.  Do not give the error code an opportunity to be
overwritten with SQLITE_OK.  Ticket [5ee23731f15].

FossilOrigin-Name: bc1101179abb4577417c971a7e4fbacde50e19a2

15 years agoSuppress some harmless compiler warnings.
drh [Tue, 13 Oct 2009 13:08:19 +0000 (13:08 +0000)] 
Suppress some harmless compiler warnings.

FossilOrigin-Name: 5d381daa6e5248ec171aa682e2dad058d4012f24

15 years agoMake sure mem3.c releases its mutex on an sqlite3_shutdown() call.
drh [Tue, 13 Oct 2009 12:48:43 +0000 (12:48 +0000)] 
Make sure mem3.c releases its mutex on an sqlite3_shutdown() call.

FossilOrigin-Name: 16254ad5aad355acedf72e0a1c618438041d5889

15 years agoAdd further test cases to e_fkey.test.
dan [Tue, 13 Oct 2009 10:39:16 +0000 (10:39 +0000)] 
Add further test cases to e_fkey.test.

FossilOrigin-Name: c85e58743a87bfbea6376c237e5e3a6909184f6c

15 years agoAdd asserts as evidence that all FK constraints are either immediate or
drh [Mon, 12 Oct 2009 22:30:49 +0000 (22:30 +0000)] 
Add asserts as evidence that all FK constraints are either immediate or
deferred.

FossilOrigin-Name: 634ef4fc9f4051245b38f558bb1c733031548c2f

15 years agoWhen processing FK constraints on changes to parent tables, make sure the
drh [Mon, 12 Oct 2009 20:01:49 +0000 (20:01 +0000)] 
When processing FK constraints on changes to parent tables, make sure the
names of child tables appear correctly in the output of EXPLAIN QUERY PLAN.

FossilOrigin-Name: a4ab5215fed231c8e5f8714f5cadafd1209b362a

15 years agoAdd more test cases to e_fkey.test.
dan [Mon, 12 Oct 2009 18:57:20 +0000 (18:57 +0000)] 
Add more test cases to e_fkey.test.

FossilOrigin-Name: 5633cb2b5b91a54e677dde76e31e319cd7d51780

15 years agoFix some mappings from e_fkey.test.
dan [Mon, 12 Oct 2009 16:02:10 +0000 (16:02 +0000)] 
Fix some mappings from e_fkey.test.

FossilOrigin-Name: 171c67138527750ec4af403f05389fae5f7da7b5

15 years agoUpdate e_fkey.test to match the latest version of foreignkeys.html.
dan [Mon, 12 Oct 2009 15:25:28 +0000 (15:25 +0000)] 
Update e_fkey.test to match the latest version of foreignkeys.html.

FossilOrigin-Name: a2ca9f1a7a158e7b83a642a8d17549d81caea557

15 years agoExtra test cases mapped to statements in foreignkeys.html.
dan [Mon, 12 Oct 2009 11:27:00 +0000 (11:27 +0000)] 
Extra test cases mapped to statements in foreignkeys.html.

FossilOrigin-Name: ffa6207dd72024f01ab6f2715fe628943f178ca5

15 years agoAdd further test cases to e_fkey.test.
dan [Mon, 12 Oct 2009 08:41:49 +0000 (08:41 +0000)] 
Add further test cases to e_fkey.test.

FossilOrigin-Name: d61cc0e1a1e8b4bf49016d3d14554f9c20f86f6b

15 years agoAdd tests to e_fkey.test.
dan [Sat, 10 Oct 2009 15:49:49 +0000 (15:49 +0000)] 
Add tests to e_fkey.test.

FossilOrigin-Name: 5ec07feea47e727824b8b48236b5cce80539a455

15 years agoUpdate requirement text for sqlite3_open_blob(). Update evidence comment
drh [Sat, 10 Oct 2009 14:29:30 +0000 (14:29 +0000)] 
Update requirement text for sqlite3_open_blob().  Update evidence comment
in e_fkey.test to conform to the latest requirement phrasing.

FossilOrigin-Name: 89c548acf4691bad3d90400026267d4c6a55cde1

15 years agoAdd test cases to e_fkey.test.
dan [Fri, 9 Oct 2009 18:16:55 +0000 (18:16 +0000)] 
Add test cases to e_fkey.test.

FossilOrigin-Name: e391dfe79d52e1de48688715d4a6707ffca214fd

15 years agoTest a couple of the examples in foreignkeys.html.
dan [Thu, 8 Oct 2009 19:02:50 +0000 (19:02 +0000)] 
Test a couple of the examples in foreignkeys.html.

FossilOrigin-Name: a2fb7902c01f8b095b25d338fc2f23cb26c941d9

15 years agoAdd test cases to test file "e_fkey.test".
dan [Thu, 8 Oct 2009 17:42:28 +0000 (17:42 +0000)] 
Add test cases to test file "e_fkey.test".

FossilOrigin-Name: 23e0f61a4f24315bf31f632f43b60ec232f348fb

15 years agoFix a problem in the legacy genfkey code to do with column names that require quoting.
dan [Thu, 8 Oct 2009 13:42:28 +0000 (13:42 +0000)] 
Fix a problem in the legacy genfkey code to do with column names that require quoting.

FossilOrigin-Name: 273ccbf18af5191807678a0a0c09cda82408b29c

15 years agoAdd tests to test/e_fkey.test.
dan [Thu, 8 Oct 2009 11:57:24 +0000 (11:57 +0000)] 
Add tests to test/e_fkey.test.

FossilOrigin-Name: 533703d78ab4330b2dc8e08aaba89b4667e46331

15 years agoUpdate triggerC.test to match the change to the way the trigger-recursion limit is...
dan [Thu, 8 Oct 2009 06:24:41 +0000 (06:24 +0000)] 
Update triggerC.test to match the change to the way the trigger-recursion limit is handled.

FossilOrigin-Name: 5806925283b889867567c4ad92518bad000e9d9d

15 years agoFix a segfault that can occur following an OOM fault while renaming a
drh [Thu, 8 Oct 2009 01:43:55 +0000 (01:43 +0000)] 
Fix a segfault that can occur following an OOM fault while renaming a
table holding foreign key constraints.

FossilOrigin-Name: 33973814c67bc9bac575bf2249df6530dd2184d3

15 years agoUse memcpy() rather than structure assignment so that memcmp() can later
drh [Wed, 7 Oct 2009 23:42:25 +0000 (23:42 +0000)] 
Use memcpy() rather than structure assignment so that memcmp() can later
be used for comparison.  Ticket [8550ecca70]

FossilOrigin-Name: 56f609da4bfcc794e1f8573652dcde8515e87098

15 years agoAdd some tests of statements in foreignkeys.html.
dan [Wed, 7 Oct 2009 18:41:19 +0000 (18:41 +0000)] 
Add some tests of statements in foreignkeys.html.

FossilOrigin-Name: 8382867956caf20f62c46c15b456c1c16d0824fd

15 years agoAdd a missing OP_Close opcode to VDBE programs that check for FK constraint violations.
dan [Wed, 7 Oct 2009 16:04:46 +0000 (16:04 +0000)] 
Add a missing OP_Close opcode to VDBE programs that check for FK constraint violations.

FossilOrigin-Name: 5caa4a2b050d5743b1407485cf419aa36cf16ac6

15 years agoUpdate the header comment for sqlite3_blob_open to note that it is not possible to...
dan [Wed, 7 Oct 2009 11:29:40 +0000 (11:29 +0000)] 
Update the header comment for sqlite3_blob_open to note that it is not possible to write to a column that is indexed, part of a primary key or, if foreign key support is enabled, part of a foreign key.

FossilOrigin-Name: 2fd487fdb669df89a8eb62cd0b7dc27ea1016edf

15 years agoUpdate header file comments describing the sqlite3_changes and sqlite3_total_changes...
dan [Wed, 7 Oct 2009 10:43:26 +0000 (10:43 +0000)] 
Update header file comments describing the sqlite3_changes and sqlite3_total_changes functions to describe how changes made by foreign key actions are handled.

FossilOrigin-Name: 4c342c026a84f2608c2b331a1ac016117b80f108

15 years agoChange tclsqlite.c to use the Tcl_NRxxx() APIs in Tcl versions 8.6 and later.
dan [Tue, 6 Oct 2009 14:59:02 +0000 (14:59 +0000)] 
Change tclsqlite.c to use the Tcl_NRxxx() APIs in Tcl versions 8.6 and later.

FossilOrigin-Name: e9f72f1de459a9e8380609f6bd7d4b76afb59f89

15 years agoFix some errors in the guttman versions (disabled by default) of the algorithms in...
dan [Mon, 5 Oct 2009 05:40:08 +0000 (05:40 +0000)] 
Fix some errors in the guttman versions (disabled by default) of the algorithms in rtree.c.

FossilOrigin-Name: 64bad00b4f6fbbc3e5e75966f9c3959ad3d542ef

15 years agoHandle an SQLITE_IGNORE returned when requesting authorization to read parent key...
dan [Sat, 3 Oct 2009 07:04:11 +0000 (07:04 +0000)] 
Handle an SQLITE_IGNORE returned when requesting authorization to read parent key columns by pretending the parent key columns contain NULL values.

FossilOrigin-Name: 3c24df38e6ae5dfe999bbf3133b65df0074c6a50