drh
af2b572028
Use the sqlite3CtypeMap[] to improve the speed and reduce the size of the
...
logic in the tokenizer that recognizes identifiers.
FossilOrigin-Name: 1c9243b0760741f48b15efb0da661255177aed8b
2009-11-16 15:11:51 +00:00
drh
d93a8b276d
Additional optimizations in sqlite3VdbeRecordCompare().
...
FossilOrigin-Name: 23ea2b700fd6d28d3b13663d164faba3760c572e
2009-11-16 03:13:40 +00:00
drh
8b249a886d
Optimizations to the sqlite3VdbeRecordCompare() routine help it to run 12.5%
...
faster for some traces.
FossilOrigin-Name: 74c76f0bf946d184275de478ec72220d76342493
2009-11-16 02:14:00 +00:00
dan
4b4d4469f5
Fixes to fts3 integrity check code.
...
FossilOrigin-Name: d3cae986ee1a176b1b015c3cebcd58ff0c3bdf92
2009-11-14 23:50:11 +00:00
drh
a6c2ed91ca
Optimizations to the main loop inside sqlite3VdbeExec() to help VDBE byte code
...
run a few percent faster.
FossilOrigin-Name: d622ac6ac7a297754494d3a33dbaeea02836272e
2009-11-14 23:22:23 +00:00
drh
bbe879d516
Make the sqlite3VdbeExec() function about 2% faster by storing the opcode
...
array in a local variable.
FossilOrigin-Name: 8bd3cc82720ac7e8a9d4a03a882b6f8226867b0d
2009-11-14 18:04:35 +00:00
dan
91f0ce39e4
Further OOM testing for fts3 code. Add Tcl code implementing an integrity-check for fts3.
...
FossilOrigin-Name: c27d46b33e8596b45c562c2742b05030e8899092
2009-11-14 11:41:00 +00:00
drh
1f35012c11
Performance improvements and size reductions on the OP_Seek* family of
...
VDBE opcodes.
FossilOrigin-Name: ed820f45cf4354b1e1db64049c47a07221a7ff6d
2009-11-13 20:52:43 +00:00
drh
93952eb8c5
Simplify the OPFLG processing logic in the VDBE for a speed boost in the
...
VDBE processing loop and a reduction in code size.
FossilOrigin-Name: 3352b3eba545c3128efb7665ec91d4df3b16011d
2009-11-13 19:43:43 +00:00
drh
c54055bd25
Force 8-byte memory alignment on memory allocated for VDBE cursors.
...
FossilOrigin-Name: bdc45ba77fb77771c8ff46b8d6c2dd29e6d3b019
2009-11-13 17:05:53 +00:00
drh
5c03f30a9a
Changes to test_intarray.c so that it build with SQLITE_OMIT_VIRTUALTABLE.
...
Added testcase() macros to expr.c.
FossilOrigin-Name: f0599d28fabe9e67a7150a91c266cb7655a2002e
2009-11-13 15:03:59 +00:00
dan
09977bb9f0
Start reworking fts3 code to match the rest of SQLite (code conventions, malloc-failure handling etc.).
...
FossilOrigin-Name: 30a92f1132801c7582007ee625c577ea2ac31cdf
2009-11-13 10:36:20 +00:00
drh
91fc4a0c4d
Shift more OP_Found opcodes over to using the unpacked format, for improved
...
performance.
FossilOrigin-Name: 6705ab1ad12cbdbbcf1f3e5439a4e6cbdcc421b3
2009-11-12 20:39:03 +00:00
drh
8cff69df11
Enhance the OP_Found and OP_NotFound opcodes so that they can accept an
...
array of registers as an unpacked record in addition to a record built
using OP_MakeRecord. Use this to avoid OP_MakeRecord calls during IN
expression processing.
FossilOrigin-Name: b9eab885cd2ca1a1633329e7036c125e8dba62c5
2009-11-12 19:59:44 +00:00
drh
e3365e6c37
Factor out the IN operator code generation into a subroutine. Use this
...
subroutine to implement both logic and branching versions of the IN operator.
FossilOrigin-Name: fcff5b7e2d059ffb8d21df57d0c9648bd876e813
2009-11-12 17:52:24 +00:00
drh
36c563a293
Factor out the code generator for BETWEEN into a subroutine.
...
FossilOrigin-Name: 5735f60b23460e7677b9c982a26bc13b0f4ed02b
2009-11-12 13:32:22 +00:00
shaneh
779b8f126e
Update comment for substrFunc(). Added additional SUBSTR() test cases.
...
FossilOrigin-Name: d7b3801dc7fad1b002f892fb5d82047ebff98369
2009-11-12 05:04:50 +00:00
drh
35451c6acd
Suppress unnecessary OP_Noop instructions on when the right table of a
...
LEFT JOIN uses the index-only optimization.
FossilOrigin-Name: e8aec08bee1c8d593474561898037aed571e64ce
2009-11-12 04:26:39 +00:00
drh
6a51741d46
Suppress excess OP_Null opcodes caused by binary IS or IS NOT operators
...
that are converted into unary ISNULL or NOTNULL operators.
FossilOrigin-Name: cff1b36ab2c417611f59e96694005c03762788d2
2009-11-12 03:46:34 +00:00
drh
9b918ed1d8
Adjustments to the implementation of LIMIT so that it uses fewer opcodes.
...
FossilOrigin-Name: 39d5b292d27faf00ab58ff4074f91f7aea97cd99
2009-11-12 03:13:26 +00:00
drh
ae2a348dbd
If the sector size is unspecified (initially 0) then set it to 512, not to 32.
...
FossilOrigin-Name: 8861b5c16031ad570ffbe17b3ec8163b136a7f63
2009-11-11 23:58:06 +00:00
drh
0abaefefd6
Remove an obsolete (and incorrect) comment from sqlite3MemCompare().
...
No changes to code.
FossilOrigin-Name: c15b70b3aefc399dae1df5bb721530f0e2b7887a
2009-11-11 23:48:22 +00:00
drh
4adc4cb93b
Tweaks to the SUBSTR() function to make it dramatically faster in the common
...
case where the input string is large but the 2nd and 3rd arguments are small
positive integers.
FossilOrigin-Name: 5a474a867c5988ad5ec03719516fdd38f0da5c2c
2009-11-11 20:53:31 +00:00
drh
3c99d68b5c
Allow media sector sizes as small as 32. The former minimum size was 512.
...
FossilOrigin-Name: 5a32bfc17ed022c85d2615c34b41a3dcae2594bd
2009-11-11 13:17:08 +00:00
shaneh
5fc250100e
Modified CLI to raise an error when extra command line options are passed.
...
Added tests to verify correct handling, as well as other basic handling
of command line options. Ticket [f5cb008a65].
FossilOrigin-Name: 09b4f19f100fe82a8321b9ded99e679b7eedc1fa
2009-11-11 04:17:07 +00:00
drh
e76173b7c0
Additional test cases for the coalesce() and ifnull() functions.
...
FossilOrigin-Name: d0591258b62df4fa610b7ac2a2af0344cf82f231
2009-11-11 01:14:17 +00:00
drh
ae6bb9570b
Generate VDBE code for the built-in COALESCE() and IFNULL() functions. This
...
allows unused arguments to never be evaluated, which is a performance win when
the unused argument is a subquery.
FossilOrigin-Name: 30055b257c3c65f8123cad5ac6c62c4c6ca2c900
2009-11-11 00:24:31 +00:00
drh
63b3878921
Additional intarray test cases and tweaks to comments.
...
FossilOrigin-Name: 0c8db5d88ee41dab58d6464283b51f82f7457838
2009-11-10 17:55:47 +00:00
drh
522efc62b0
Initial implementation and test cases for the "intarray" virtual table.
...
FossilOrigin-Name: 0e7d29253f093d4125ede3cfc478e4bf09aef987
2009-11-10 17:24:37 +00:00
shaneh
ac81cd71a5
Fix for datbase name being ignored with the -batch option in the CLI. Ticket [aeff892c57].
...
FossilOrigin-Name: 8097c64acfc74c913bc6d7d631bc1423c90df93f
2009-11-10 17:07:30 +00:00
drh
c81c11f62c
Remove the obsolete "$Id:$" RCS identifier strings from the source code.
...
FossilOrigin-Name: f6c045f649036958078cb15cd9d5453680c82b0c
2009-11-10 01:30:52 +00:00
drh
c728597842
Remove from the TCL interface some old code associated with sqlite3_analyzer.
...
FossilOrigin-Name: 01f2271e51751ff66061f65556a5e324f243756a
2009-11-10 01:13:25 +00:00
drh
1461d7ace0
Omit some code that is not used when SQLITE_SECURE_DELETE is defined.
...
FossilOrigin-Name: 5a9e746357aa8edeef6b89f01e19cd57555bef32
2009-11-10 01:12:50 +00:00
shaneh
e2aa9d7192
Improved shell "dot" command argument handling. Ticket [f12a9eeedc].
...
FossilOrigin-Name: 9fb699193378bf812ef97889adc0b1a98ad56d5b
2009-11-06 17:20:17 +00:00
drh
3313b14f46
Fix the backup API so that a backup from an empty database to a non-empty
...
database works. Ticket [0bf974bdf9]. The only changes are in assert()
statements.
FossilOrigin-Name: ddb71cd9ed395804a13dc136bb7688a7627c798f
2009-11-06 04:13:18 +00:00
shaneh
6278666fe3
Merged accidental fork.
...
FossilOrigin-Name: d410cd4e42ecf50a849f49cf3395ec169350e7cf
2009-11-06 03:33:01 +00:00
shaneh
a05e0c4efd
Add some very basic tests for the commands available from the CLI.
...
FossilOrigin-Name: 6bf43338049f956b447139c90df472682e28222a
2009-11-06 03:22:54 +00:00
drh
481aa74e21
Recover an ophaned branch that resulted from some ill-advised "shunning".
...
This check-in should be identical to [bd443f39a9] except that it should
be on the trunk.
FossilOrigin-Name: 38eaf1ab6e05161e6dc7cd69e942aeca16548c45
2009-11-05 18:46:02 +00:00
drh
1860e3f98f
Remove "const" from parameter of sqlite3BtreeFactory() to avoid a compiler
...
warning.
FossilOrigin-Name: eb7a544fe49d1626bacecfe53ddc03fe082e3243
2009-11-04 13:30:01 +00:00
drh
8677d30812
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
2009-11-04 13:17:14 +00:00
drh
e68e8c58c9
Report errors back up to the ATTACH command if the codec fails to initialize.
...
FossilOrigin-Name: a6c696102eb483080b0a1d31b85f6b5f85c3efbf
2009-11-04 01:56:27 +00:00
shane
f639c40f77
Fix compiler warnings on MSVC build.
...
FossilOrigin-Name: 01c4b5b84ec7ce589e20ea66e80011f092ab32f0
2009-11-03 19:42:30 +00:00
drh
f16371d650
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
2009-11-03 19:18:31 +00:00
drh
9a5f4d64f3
Force all qsort() calls in mkkeywordhash.c to be stable so that we get
...
predictable results on different platforms.
FossilOrigin-Name: 3b02df27ab63936226a90098d88535ed19c2b782
2009-11-03 13:08:16 +00:00
drh
e594bc3595
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
2009-11-03 13:02:25 +00:00
drh
75f8d8be1a
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
2009-11-03 01:22:07 +00:00
drh
ccaf7731d7
Bug fix in the recent changes to mkopcodeh.awk.
...
FossilOrigin-Name: 6610cac435428434bc978d5e4df92aa1e431240b
2009-11-02 18:44:58 +00:00
drh
b24a2001cc
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
2009-11-02 18:14:50 +00:00
drh
539a20fa7c
Do not insert the date and time of generation into the amalgamation.
...
FossilOrigin-Name: 9f6cf13dfbe6f1fe0c05a9c5df557ae20dc08cbd
2009-11-02 18:01:50 +00:00
drh
18bf48f3bc
Update the configure script for version 3.6.20.
...
FossilOrigin-Name: f19cb105d929f0a56f9597b6eb33ad96d0f7eddc
2009-11-02 17:40:07 +00:00
drh
e7ae4e2c98
Comment changes in support of better documentation. No changes to code.
...
FossilOrigin-Name: 79ab4714e408d01103b277c234b10db50a50352a
2009-11-02 15:51:52 +00:00
drh
1d452e1de0
Fix compiler warnings. Better comments on some variables associated with
...
LIKE/GLOB processing in the query planner.
FossilOrigin-Name: cfa2db0ff7a94e7f66c35f672ee41cadd45a6dd7
2009-11-01 19:26:59 +00:00
drh
1aca4f968c
Increase the version number to 3.6.20.
...
FossilOrigin-Name: 612952743da28e651512547fc0d3925f4c698eb4
2009-10-30 14:27:14 +00:00
drh
1450bc6e52
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
2009-10-30 13:25:56 +00:00
drh
e05c929b78
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
2009-10-29 13:48:10 +00:00
drh
5bbe548195
Minor updates and corrections to comments in btreeInt.h. No changes to code.
...
FossilOrigin-Name: ad949fa1acb4546fe4f2a448025579cc374dd8dd
2009-10-27 18:06:10 +00:00
drh
80bcf232a9
Remove additional obsolete code from the sqlite3_release_memory() logic.
...
FossilOrigin-Name: 2eeb6ed818dac240afe761b4e7c11e961255bf33
2009-10-26 22:32:55 +00:00
drh
40f75cf389
Remove some obsolete code within #if 0 that was causing developer concern.
...
FossilOrigin-Name: 1d64e9453fb59d2bb1b5cb0cbacaf135b8f928c3
2009-10-26 22:08:21 +00:00
drh
eb206381a8
Fix a compiler warning that occurs when building the TCL interface.
...
FossilOrigin-Name: fc36034bdc3b21e91f24be812e103da26f5d7d5d
2009-10-24 15:51:33 +00:00
drh
1faca75755
Another attempt at getting the pTail pointer computations correct for
...
sqlite3_prepare16(). Ticket [3fe897352e].
FossilOrigin-Name: a96b4e8c01d167d35b9ec08ee6603e52ead601b6
2009-10-24 03:04:10 +00:00
shane
f69573d33e
In shell, modified to not print informational messages during startup while in "batch mode".
...
Ticket [2cb66577f6].
FossilOrigin-Name: e3898e25cf0ea870612eeaca6af2396f0eab0e07
2009-10-24 02:06:14 +00:00
shane
86f5bdbe59
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
2009-10-24 02:00:07 +00:00
drh
6d116cace9
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
2009-10-24 01:55:14 +00:00
drh
7c95b0f3da
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
2009-10-23 18:15:46 +00:00
shane
9bd1b44944
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
2009-10-23 01:27:39 +00:00
shane
916f961b9e
In shell, modified "import" handling to ensure error code returned correctly on exit.
...
Ticket [bd770b2c52].
FossilOrigin-Name: 009efad0f4293dd08a6f2f16d8eb9e94e2f962ca
2009-10-23 00:37:15 +00:00
shane
b9fc17d726
In shell, reworked .header and .echo handling.
...
Updated shell_exec() to (really) handle multiple statements.
Tickets [72adc99de9], [7b61b6c6ce], and [eb620916be].
FossilOrigin-Name: 790402c150e2026cd0c147a4cadbe9b9ab97b688
2009-10-22 21:23:35 +00:00
drh
57a0227f8b
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
2009-10-22 20:52:05 +00:00
drh
d91ca49a4e
Add some sample requirement implementation comments to where.c.
...
FossilOrigin-Name: 9854ad00aed08793ae7ba3c2cfbab7a2dba4dcb8
2009-10-22 20:50:36 +00:00
shane
ad6b8d073d
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
2009-10-22 18:12:58 +00:00
shane
626a6e4aa2
Updated shell to output blobs in X'1234' form when in "insert" mode. Ticket [72adc99de9].
...
FossilOrigin-Name: a2ad9e6363308b7137fcb1916769151b96933cdb
2009-10-22 17:30:15 +00:00
drh
e6ab069274
Add markings on test evidence for R-30323-21917.
...
FossilOrigin-Name: e51af74c3aeb82604841cc83a490351d1422e838
2009-10-22 00:20:17 +00:00
drh
edc17555b6
Mention the sqlite3_column_count() function on the same documentation page
...
with all of the other sqlite3_column... interfaces.
FossilOrigin-Name: 5354ace55f448d10128e2bfe4b904a1441e3bf10
2009-10-22 00:14:05 +00:00
shane
9a91c66e9c
Merge accidental fork back to trunk.
...
FossilOrigin-Name: f63397ad6c32f575fe33b2f7dd22380cd1f51f1d
2009-10-21 14:33:03 +00:00
shane
43d9cb2c94
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
2009-10-21 14:11:48 +00:00
shane
16f954cf80
Made detectSchemaProblem function and aSchemaTable array static. Ticket [6f8b0c5855].
...
FossilOrigin-Name: c6f22f3e38018246a2add1a509aa6c5c55b7e0be
2009-10-21 13:53:58 +00:00
drh
fcf486c3b4
Add evidence marks to parse.y. Fix a broken evidence link in e_fkey.tcl.
...
FossilOrigin-Name: 0441d28e84af20e3a98a07a43471784ac09c78db
2009-10-21 13:48:24 +00:00
shane
d2bed1c8ca
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
2009-10-21 03:56:54 +00:00
shane
b320ccd782
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
2009-10-21 03:42:58 +00:00
shane
ea5989276a
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
2009-10-21 02:00:47 +00:00
drh
9524f4bf75
Clarify the use of sqlite3_shutdown().
...
Ticket [f9af981dd2a2].
Comment changes only - no changes to code.
FossilOrigin-Name: b2aa48b52f140ad722001de686c5b2f802e9babd
2009-10-20 15:27:55 +00:00
drh
397308df6f
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
2009-10-20 15:01:58 +00:00
drh
7db29fb9a7
Remove all mention of sqlite3_next_stmt() from the documentation of
...
sqlite3_close().
FossilOrigin-Name: f494ed38a8d3fabb7a064ba4a860d5288c5a571b
2009-10-20 14:23:09 +00:00
drh
4b5af7733c
Update documentation on the sqlite3_prepare_v2() interface. No changes to code.
...
FossilOrigin-Name: 3b00e769cd30aa50a75f82babb7d2cc90aeb1238
2009-10-20 14:08:41 +00:00
dan
c94b859560
Fix cases where modifying bound variables using the clear_bindings() or transfer_bindings() APIs can invalidate a query plan.
...
FossilOrigin-Name: e6808c988c9cd7b2db23f18b5fe2177151b6f586
2009-10-20 07:01:24 +00:00
drh
b4138de448
Remove an unreachable condition in the WHERE clause processing of bound
...
parameters and replace it with an assert(), for test coverage.
FossilOrigin-Name: 3bcd78a1d76897d1bd5ad4cea52c6a65612ce433
2009-10-19 22:41:06 +00:00
drh
823e09abd6
Fix an incorrect assert() in vdbeUnbind().
...
FossilOrigin-Name: 651c1efb998b34f218694c45865fbe20b837a2ac
2009-10-19 20:15:38 +00:00
dan
ef516228db
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
2009-10-19 18:30:34 +00:00
dan
1d2ce4f804
Remove the sqlite3_reoptimize() API. The same functionality is now provided automatically to queries prepared using prepare_v2().
...
FossilOrigin-Name: 2c50b3d5aab7cd8cc841d61f8c3b2b34d2f0b54b
2009-10-19 18:11:09 +00:00
dan
f7b0b0ad5f
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
2009-10-19 15:52:32 +00:00
dan
fd3b22265e
Use 64-bit arithmetic in the xRead() method of asyncRead. Fix for [94c04eaadb].
...
FossilOrigin-Name: ca3e41b0574cfd8d971c2be2114e58273a531970
2009-10-19 07:50:25 +00:00
dan
1476a28470
Fix a problem in the icu.test script.
...
FossilOrigin-Name: 8a21fdaf6a89f74b040ea0c6bb996ac1c6fcd369
2009-10-17 14:19:29 +00:00
drh
bec451f8ad
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
2009-10-17 13:13:02 +00:00
dan
03c7b99988
Add documentation comment for new experimental API sqlite3_reoptimize().
...
FossilOrigin-Name: c48f8ffedc30841aa4994eb925d09c2ee97a864d
2009-10-17 08:26:29 +00:00
drh
ebecd2c970
Merge the sqlite3_reoptimize() changes into the trunk.
...
FossilOrigin-Name: 50136840d54674c239613265ebbacaabf215f4e2
2009-10-16 16:21:51 +00:00
dan
d893ed8eea
Fix a problem in the analyze3.test script.
...
FossilOrigin-Name: 61174aea74db59f6792e275aa366b7f0e1f2270b
2009-10-16 15:59:35 +00:00
dan
85a48dfd71
Remove a mutex reference leak from sqlite3_reoptimize().
...
FossilOrigin-Name: 9f0937066184421f23453ceb451fd726c75cb593
2009-10-16 15:19:08 +00:00
drh
0ee3dbef79
Comment cleanup in btree.c.
...
FossilOrigin-Name: 32966ba4796e70d0afcff6abdda9bdcba08b098a
2009-10-16 15:05:18 +00:00
dan
fa401def25
Experimental fix for [f777251dc7]. This may be changed yet.
...
FossilOrigin-Name: 174477bca05d019e663fd2b7cd031189ab2e010a
2009-10-16 14:55:03 +00:00
drh
ed1f8787aa
Fix comment typos in btreeInt.h.
...
FossilOrigin-Name: 550566a75fc79e3662431ba493af853b522d8850
2009-10-16 13:23:33 +00:00
dan
937d0dea4f
Add the experimental sqlite3_reoptimize() API.
...
FossilOrigin-Name: 9bd6f3d8864d422fe42074688b191915b27ad8ea
2009-10-15 18:35:38 +00:00
drh
9bd42e96ac
Version 3.6.19 release candidate
...
FossilOrigin-Name: c1d499afc50d54b376945b4efb65c56c787a073d
2009-10-14 11:33:54 +00:00
drh
bc7a22d239
Update the configure script for version 3.6.19.
...
FossilOrigin-Name: ac19dbc6a208be2313e47cbcc0b2a0d8d04bae4c
2009-10-13 22:47:13 +00:00
drh
fcb9f7ad7a
Fixed warnings with MSVC compile.
...
FossilOrigin-Name: e0aa50c382a56bb02eaa589619b7e670006a26b3
2009-10-13 19:19:23 +00:00
drh
a46057b0fe
Fix a typo in the test script added for ticket [5ee23731f15].
...
FossilOrigin-Name: d0f55b5c3b1a85d837cd1d8a2f089c6bcf5a8c0d
2009-10-13 18:49:53 +00:00
drh
a2c8a95b1c
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
2009-10-13 18:38:34 +00:00
drh
ccd62aa0e3
Add a test case to verify that ticket [5ee23731f15] has been fixed.
...
FossilOrigin-Name: f894ebf86d6bafcd1461f104f5f677b3b6a3aa1a
2009-10-13 15:42:48 +00:00
drh
9e9f1bd1c0
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
2009-10-13 15:36:51 +00:00
drh
d3ceeb50f3
Suppress some harmless compiler warnings.
...
FossilOrigin-Name: 5d381daa6e5248ec171aa682e2dad058d4012f24
2009-10-13 13:08:19 +00:00
drh
4591c7bab5
Make sure mem3.c releases its mutex on an sqlite3_shutdown() call.
...
FossilOrigin-Name: 16254ad5aad355acedf72e0a1c618438041d5889
2009-10-13 12:48:43 +00:00
dan
166d9c8aea
Add further test cases to e_fkey.test.
...
FossilOrigin-Name: c85e58743a87bfbea6376c237e5e3a6909184f6c
2009-10-13 10:39:16 +00:00
drh
4c4298392e
Add asserts as evidence that all FK constraints are either immediate or
...
deferred.
FossilOrigin-Name: 634ef4fc9f4051245b38f558bb1c733031548c2f
2009-10-12 22:30:49 +00:00
drh
9a616f5607
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
2009-10-12 20:01:49 +00:00
dan
52a484197e
Add more test cases to e_fkey.test.
...
FossilOrigin-Name: 5633cb2b5b91a54e677dde76e31e319cd7d51780
2009-10-12 18:57:20 +00:00
dan
57a852cd11
Fix some mappings from e_fkey.test.
...
FossilOrigin-Name: 171c67138527750ec4af403f05389fae5f7da7b5
2009-10-12 16:02:10 +00:00
dan
1760024b62
Update e_fkey.test to match the latest version of foreignkeys.html.
...
FossilOrigin-Name: a2ca9f1a7a158e7b83a642a8d17549d81caea557
2009-10-12 15:25:28 +00:00
dan
3bc485e647
Extra test cases mapped to statements in foreignkeys.html.
...
FossilOrigin-Name: ffa6207dd72024f01ab6f2715fe628943f178ca5
2009-10-12 11:27:00 +00:00
dan
e506deb255
Add further test cases to e_fkey.test.
...
FossilOrigin-Name: d61cc0e1a1e8b4bf49016d3d14554f9c20f86f6b
2009-10-12 08:41:49 +00:00
dan
2f01f465f3
Add tests to e_fkey.test.
...
FossilOrigin-Name: 5ec07feea47e727824b8b48236b5cce80539a455
2009-10-10 15:49:49 +00:00
drh
c4ad1e946b
Update requirement text for sqlite3_open_blob(). Update evidence comment
...
in e_fkey.test to conform to the latest requirement phrasing.
FossilOrigin-Name: 89c548acf4691bad3d90400026267d4c6a55cde1
2009-10-10 14:29:30 +00:00
dan
2140429ccd
Add test cases to e_fkey.test.
...
FossilOrigin-Name: e391dfe79d52e1de48688715d4a6707ffca214fd
2009-10-09 18:16:55 +00:00
dan
4e7deacf48
Test a couple of the examples in foreignkeys.html.
...
FossilOrigin-Name: a2fb7902c01f8b095b25d338fc2f23cb26c941d9
2009-10-08 19:02:50 +00:00
dan
598d2028e2
Add test cases to test file "e_fkey.test".
...
FossilOrigin-Name: 23e0f61a4f24315bf31f632f43b60ec232f348fb
2009-10-08 17:42:28 +00:00
dan
8b6d37d8bc
Fix a problem in the legacy genfkey code to do with column names that require quoting.
...
FossilOrigin-Name: 273ccbf18af5191807678a0a0c09cda82408b29c
2009-10-08 13:42:28 +00:00
dan
ce3745329c
Add tests to test/e_fkey.test.
...
FossilOrigin-Name: 533703d78ab4330b2dc8e08aaba89b4667e46331
2009-10-08 11:57:24 +00:00
dan
07fcc26824
Update triggerC.test to match the change to the way the trigger-recursion limit is handled.
...
FossilOrigin-Name: 5806925283b889867567c4ad92518bad000e9d9d
2009-10-08 06:24:41 +00:00
drh
a172c34488
Fix a segfault that can occur following an OOM fault while renaming a
...
table holding foreign key constraints.
FossilOrigin-Name: 33973814c67bc9bac575bf2249df6530dd2184d3
2009-10-08 01:43:55 +00:00
drh
9b5db1dbd6
Use memcpy() rather than structure assignment so that memcmp() can later
...
be used for comparison. Ticket [8550ecca70]
FossilOrigin-Name: 56f609da4bfcc794e1f8573652dcde8515e87098
2009-10-07 23:42:25 +00:00
dan
f589450dc9
Add some tests of statements in foreignkeys.html.
...
FossilOrigin-Name: 8382867956caf20f62c46c15b456c1c16d0824fd
2009-10-07 18:41:19 +00:00
dan
ed81bf6082
Add a missing OP_Close opcode to VDBE programs that check for FK constraint violations.
...
FossilOrigin-Name: 5caa4a2b050d5743b1407485cf419aa36cf16ac6
2009-10-07 16:04:46 +00:00
dan
fedd4805be
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
2009-10-07 11:29:40 +00:00
dan
b616309f52
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
2009-10-07 10:43:26 +00:00
dan
4a4c11aaf5
Change tclsqlite.c to use the Tcl_NRxxx() APIs in Tcl versions 8.6 and later.
...
FossilOrigin-Name: e9f72f1de459a9e8380609f6bd7d4b76afb59f89
2009-10-06 14:59:02 +00:00
dan
4ec56ff0ce
Fix some errors in the guttman versions (disabled by default) of the algorithms in rtree.c.
...
FossilOrigin-Name: 64bad00b4f6fbbc3e5e75966f9c3959ad3d542ef
2009-10-05 05:40:08 +00:00
dan
02470b20f3
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
2009-10-03 07:04:11 +00:00
dan
251ad6e1c5
Add one more authentication test to fkey2.test to cover an untested branch.
...
FossilOrigin-Name: e4fa8be770eb79806d489be46f68f969de17378b
2009-10-02 15:29:10 +00:00
dan
47a06346ff
When inserting a row into a child table, invoke the authorization callback to request permission to read the parent key columns.
...
FossilOrigin-Name: 9842f2d5f606eb8f641ecae9fbc5368b8d7e4286
2009-10-02 14:23:41 +00:00
dan
1316700e54
Add a test to check that the incrblob API cannot be used to write to an IPK column. Also a comment to explain why the incrblob code does not need to check if a column is part of a parent key before writing to it.
...
FossilOrigin-Name: dca2a7f608d9237039541707846c76cd460f5805
2009-10-02 06:35:06 +00:00
dan
3d7b046996
Add test cases to cover the branches added by the previous commit.
...
FossilOrigin-Name: aaa005b6da222f711f201c453d28f5be40e9c601
2009-10-01 17:13:31 +00:00
dan
e7a94d8128
If an update does not modify any child or parent key columns, omit foreign key processing for the statement.
...
FossilOrigin-Name: edff3500058eb8ad2381f855ef7a09ecb680f7b8
2009-10-01 16:09:04 +00:00
dan
d583502e7d
Add tests to check that FK support interacts with count-changes correctly.
...
FossilOrigin-Name: 5b8366154b2a91c1be3e7e52ec270ecdfe7d2bb1
2009-10-01 04:35:05 +00:00
dan
f7a94543b8
Remove unreachable branches from fkey.c. Add a few tests to cover the remaining branches.
...
FossilOrigin-Name: 0a0a17d87c990a811a2755b9d9d4141b611b49db
2009-09-30 08:11:07 +00:00
dan
1cf021e143
Change a couple of comments to use "SQLITE_MUTEX_OMIT" instead of OMIT_MUTEX.
...
FossilOrigin-Name: b733e939f785111eac987fe4a25ccfa512e4f0b4
2009-09-30 04:28:04 +00:00
dan
652ac1d0a7
Use the affinity and collation sequence associated with the parent key when finding child table rows to apply a foreign key action to.
...
FossilOrigin-Name: 9a4b7ec2928307e88783223903c842accaff7ccf
2009-09-29 16:38:59 +00:00
dan
9707c7b104
Check that a unique index uses the default collation sequences for each column before using it as part of a foreign key constraint operation.
...
FossilOrigin-Name: 64154174cf8a53bd9be818db53cb0e586c5d24cb
2009-09-29 15:41:57 +00:00
dan
792e92012f
Remove an unused variable from fkey.c.
...
FossilOrigin-Name: 582bd7682831362cd0e2f91ac0dba5ab2b7e2983
2009-09-29 11:28:51 +00:00
dan
856ef1a5f9
Various fixes so that "make test" works with OMIT_FOREIGN_KEY, OMIT_TRIGGER and OMIT_ALTER_TABLE.
...
FossilOrigin-Name: e4eb227b14e4bfcb9f7f284692a391b7355f0204
2009-09-29 06:33:23 +00:00
dan
f0662567fa
Ignore foreign key mismatch errors while compiling DROP TABLE commands.
...
FossilOrigin-Name: 5b4d46374a8e808246a1813c12c36c4a75371898
2009-09-28 18:52:11 +00:00
dan
d66c83095e
Fix the DROP TABLE command so that it cannot be used to bypass foreign key constraints (if foreign key support is enabled).
...
FossilOrigin-Name: 8353808c9e70412fdee31bfda7810e948f1c7485
2009-09-28 14:49:01 +00:00
dan
9277efa3d5
Fix some foreign key constraint related problems that occur when a row refers to itself.
...
FossilOrigin-Name: 9e503e2d0428c9e8df878c7c6594790232cca4e0
2009-09-28 11:54:21 +00:00
dan
432cc5b9f3
When ALTER TABLE RENAME TO is used to change the name of a table that is the parent table of a foreign key constraint, modify that foreign key constraint to use the new table name.
...
FossilOrigin-Name: b4a10c39e726dc190e9597e382baddc034294114
2009-09-26 17:51:48 +00:00
dan
0ff297eaa7
Avoid checking if an insert or delete has "fixed" an outstanding FK constraint violation if the constraint counter indicates that the database contains no such violations.
...
FossilOrigin-Name: 519144ac437b5842e4213f0e81e05c709939c2ab
2009-09-25 17:03:14 +00:00
dan
bd74783270
Fix comments in fkey2.c to reflect the immediate-constraint-counter approach.
...
FossilOrigin-Name: 9fd54b0aa73ed74c65f7db53cb666752f13263f9
2009-09-25 12:00:01 +00:00
dan
53c3fa8dbe
Prevent ALTER TABLE from being used to add a column with a REFERENCES clause and a non-NULL default value while foreign key support is enabled.
...
FossilOrigin-Name: 353b1b18253ab71ba38a887e555994f5469b87bd
2009-09-25 11:26:54 +00:00
dan
140026bdb5
Fixes and test cases to make sure the affinity and collation sequence associated with the parent key is used when comparing it with a child key value.
...
FossilOrigin-Name: 76e8e74b49be4c80b9fb20d52e9b39db8001362e
2009-09-24 18:19:41 +00:00
dan
e1e2ae2d3f
Fix a bug in the code for REPLACE conflict handling on IPK columns when there are no indexes on the table. Triggers and foreign key processing were being bypassed.
...
FossilOrigin-Name: beb2094f94849c66d98bab5999ff474cd91eea11
2009-09-24 16:52:28 +00:00
dan
8c430041f5
Fix a problem in fkey.c when a child key is the IPK of its table.
...
FossilOrigin-Name: 8a000a8aae4d356e68acf2bc1788d2c40279522c
2009-09-24 15:16:33 +00:00
drh
46803c3e0b
Remove the ALWAYS() added by the previous check-in. It is not needed.
...
FossilOrigin-Name: 36568963356e3919e8b862e7e40ded2eae7ce187
2009-09-24 14:27:33 +00:00
drh
1f638ceb34
Comment enhancements. Add an ALWAYS macro in fkey.c to indicate a branch
...
that is always taken.
FossilOrigin-Name: d5b714cffffe588dd4dd10e0b82df8d99657be88
2009-09-24 13:48:10 +00:00
dan
1bea559a94
Ensure foreign key related processing takes place when rows are deleted from the database by REPLACE conflict handling.
...
FossilOrigin-Name: 3f40c142c8526c1572020bd4d945c03a72019135
2009-09-24 11:31:21 +00:00
dan
4bb3b679b0
Use sqlite3FkOldmask() in delete.c instead of assuming that foreign key constraints always require all columns of the deleted row to be stored in registers.
...
FossilOrigin-Name: ce554a393401fc2fb9b5be049ddd383070102934
2009-09-24 10:42:09 +00:00
dan
94d7f50a0f
Remove unused parameter from sqlite3CodeRowTrigger(). Fix header comments for this function and CodeRowTriggerDirect().
...
FossilOrigin-Name: 0443f7c9112ca91aa45c78a3d6287e5fcf5c3b73
2009-09-24 09:05:49 +00:00
drh
ff738bce0d
Make sure a transaction is available for rollback whenever a REDUCE conflict
...
resolution occurs and there is the possibility to ABORT.
Ticket [4a03edc4c8c]
FossilOrigin-Name: f0c56fa90dc95aff6fe6764b5ab75a90199247b0
2009-09-24 00:09:58 +00:00
shane
86d682950b
More fkey tests.
...
FossilOrigin-Name: 2d544bd53d0fb9633aca40841529aec8e7df61f8
2009-09-23 18:49:41 +00:00
dan
8a2fff7a78
Fix a problem with FK constraints that implicitly map to a composite primary key.
...
FossilOrigin-Name: e0a48d53110130de75602603f524539e421a9dba
2009-09-23 18:07:22 +00:00
dan
475f571994
Fix a problem in the fkey_malloc.test script.
...
FossilOrigin-Name: 0ce1efa46080f379089b03706daeac96c4add0f9
2009-09-23 17:31:19 +00:00
dan
32b09f29c9
Do not check immediate foreign key constraints until the end of the statement. This matches the postgres behaviour.
...
FossilOrigin-Name: 1a32149cc3c722058f4ed4c81edadeb6ce5bc9e4
2009-09-23 17:29:59 +00:00
drh
f1dfc4fbb3
Modify the ".dump" command on the CLI so that it always issues a
...
PRAGMA foreign_keys=OFF at the top of the output.
FossilOrigin-Name: 0755b9b697d32292f378a4b934ca1cf9f56225cd
2009-09-23 15:51:35 +00:00
drh
6d4486ae9f
Change the version number to 3.6.19. Fix a couple of incorrect testcase()
...
macros associated with the new IS and IS NOT operators in expr.c.
FossilOrigin-Name: e3b73394bf9c0391e997079b160eace3589415ab
2009-09-23 14:45:05 +00:00
dan
d981d44781
Disallow using the implicit rowid column as the parent key of an FK constraint.
...
FossilOrigin-Name: a5f7e71f424900071a3925e53e9128c9148ea2e8
2009-09-23 13:59:17 +00:00
drh
6f94702f20
Add test cases for the IS and IS NOT operator.
...
FossilOrigin-Name: 101ed58cf4a1dfe53031b98cfc7ed01e86b4c7b6
2009-09-23 13:39:56 +00:00
dan
a8f0bf643e
Add extra tests for foreign key support.
...
FossilOrigin-Name: 7d086afe69da4d03bd1de5408626858273f91e8f
2009-09-23 12:06:52 +00:00
dan
8099ce6f4a
Add missing comments to fkey.c. Also, change the terminology used for comments and names in fkey.c from "referenced/referencing" to "parent/child". This is arguably less correct, but is easier to follow.
...
FossilOrigin-Name: 540c2d18e14c277b55f95729fbafc04ca66466b2
2009-09-23 08:43:35 +00:00
drh
788536b165
Do not run ON UPDATE actions of a foreign key constraint unless at least one
...
column value really does change.
FossilOrigin-Name: 71ac8e28e55ff0250ebe2fe239159ce2458d9165
2009-09-23 03:01:58 +00:00
drh
6a2fe09387
Generalize the IS and IS NOT operators so that their right-hand side can be
...
an arbitrary expression and not simple the constant NULL. They work like
= and <> except that NULL values compare equal to one another an unequal to
everything else.
FossilOrigin-Name: 98853f6104076c50ea92175e17a3254bfbbd4619
2009-09-23 02:29:36 +00:00
drh
7ba5bc5bf2
Factor the UMINUS and UPLUS tokens out of the parser so that the parser
...
tables can go back to using 8-bit values instead of 16-bit values.
FossilOrigin-Name: 3fc938c961fd7810594224b91a2d6e1ac9e48084
2009-09-22 20:08:34 +00:00
drh
9c8abf2b14
The NO ACTION action really should be no-action and not RESTRICT.
...
FossilOrigin-Name: 55b263fa2b2fed8c721154e3c48f4226be95065c
2009-09-22 19:53:41 +00:00
dan
f59c5cacb8
Fix another OOM related problem in fkey.c.
...
FossilOrigin-Name: e2bc51bc61d54d103ccffd12106c27a574e4e997
2009-09-22 16:55:38 +00:00
dan
934ce300a0
Fix a problem with ON DELETE SET DEFAULT actions.
...
FossilOrigin-Name: 9406995055f53639b0af46985c7b0a24a80308ae
2009-09-22 16:08:58 +00:00
dan
29c7f9caac
Fix an OOM related crash in fkey.c.
...
FossilOrigin-Name: 635d6a775a3f192d4292738905f5e01bc956a712
2009-09-22 15:53:47 +00:00
shane
3e82c1d99b
Allow specific exclusion of localtime_s() usage on Windows.
...
FossilOrigin-Name: 216bcda7d2818efda55849d5cb84aa483bc6429b
2009-09-22 13:25:00 +00:00
dan
ba9108b84a
Fix compilation errors when OMIT_FOREIGN_KEY is defined.
...
FossilOrigin-Name: c447cb37d6439090eb08028d54a91d7d06043744
2009-09-22 07:13:42 +00:00
dan
3606264bc9
Fix a problem with foreign key constraints that map from and IPK column.
...
FossilOrigin-Name: 84129052623dc6a175c76db602ab07fa3e57f1eb
2009-09-21 18:56:23 +00:00
dan
e83c4f3a9e
Fix compilation with both OMIT_UTF16 and ENABLE_STAT2 defined. Ticket [56928bd084ea530eb8a0b3ebe5d2d9033fb1de7f|56928bd084].
...
FossilOrigin-Name: cd850d49a12a2852258cbd7d5db56715132dff17
2009-09-21 16:34:24 +00:00
dan
75cbd984f7
Fix compilation with OMIT_TRIGGER defined. Ticket [1ff6d29030e9757d052af0f394e56bea96b8b59b|1ff6d29030].
...
FossilOrigin-Name: fb6ceed388f6d75bdc2ac2f43e5c98da74e2a448
2009-09-21 16:06:03 +00:00
dan
3be7d6eb75
Add fkey.c to the autoconf and amalgamation build systems.
...
FossilOrigin-Name: aab7a4b3c91e0a149f6499660892d09c17b010e3
2009-09-19 17:59:59 +00:00
dan
1da40a381f
Check in implementation of foreign key constraints.
...
FossilOrigin-Name: d5d399811876391642937edeb9e8434dd9e356f5
2009-09-19 17:00:31 +00:00
drh
3991bb0dee
When coding a trigger, assume that the "oldmask" requires all columns until
...
we know otherwise. That pessimistic assumption assures that all necessary
parameters are available on a cascading delete trigger.
Ticket [e25d9ea771f]
FossilOrigin-Name: 03e464be51a1c36fc02cf31178ae91f736dfddd6
2009-09-17 00:41:19 +00:00
drh
3492dd71dd
Make sure sufficient space is allocated for at least one VDBE cursor when
...
autoincrement is used. Ticket [a696379c1f088].
FossilOrigin-Name: 2b2a1ef74e24857b8d18f6370894588fc2aa5ebb
2009-09-14 23:47:24 +00:00
drh
323eb20464
Set the execute permission bit on "configure".
...
FossilOrigin-Name: f8c02b2b720e26a9ca7e35cb8015888fae538351
2009-09-11 18:28:53 +00:00
drh
4d11afe3bb
Make sure the (unsupported) configure script in the source tree has
...
execute permission prior to constructing a tarball.
Ticket [65bbb65a47ce].
FossilOrigin-Name: 5e0e941f3adf09c5f315e27cefdc968c59aa574e
2009-09-11 17:59:55 +00:00
drh
92aa5eacd8
Add an #ifndef so that the build works with SQLITE_OMIT_ANALYZE again.
...
FossilOrigin-Name: b084828a771ec40be85f07c590ca99de4f6c24ee
2009-09-11 14:05:06 +00:00
drh
d0bc5d2aa6
Omit the mutexIsInit test variable when mutexes are disabled.
...
FossilOrigin-Name: 3ea10434434d27a1300ba2b58e2c47c54909f4ff
2009-09-10 22:30:53 +00:00
shane
11bb41f878
Fixed some warnings and an assert in the WINCE code when compiling under MSVC.
...
FossilOrigin-Name: f42ec993ac9d42ca31305f26b09924108c36d9f4
2009-09-10 20:23:30 +00:00
drh
08da4bb16e
Make sure the threadsOverrideEachOthersLocks variable is only referenced by
...
linux systems on a threadsafe compile.
FossilOrigin-Name: e9d064bd9318c2bc9248df948f71fd30f24525eb
2009-09-10 19:20:03 +00:00
shane
abc6b89085
Cleanup of warnings on MSVC build.
...
FossilOrigin-Name: 5588cc96bbe0b9df5f8d31f8f2d2b48b3f54ff09
2009-09-10 19:09:03 +00:00
dan
17458718b2
Update an r-tree test to account for changes in the query planner.
...
FossilOrigin-Name: e5ce66d40bd68dc014071f7830112fa3b1d72948
2009-09-10 18:26:05 +00:00
dan
cca2de4be7
Define SQLITE_TEST when compiling mem5.c for testfixture.
...
FossilOrigin-Name: 6b16f3c9073e44a2d720a396078f0d71bda66df1
2009-09-10 18:17:10 +00:00
dan
59d60c2cac
Fix a problem in test script corrupt.test.
...
FossilOrigin-Name: dad2b74ad0a86ff07c77f0a60b26480fc0a2e54d
2009-09-10 18:04:02 +00:00
drh
fe5bdb36ab
Add assert() statement to verify that new mutexes are not allocated when
...
the mutex subsystem is uninitialized.
FossilOrigin-Name: 1183c533571bc9c7ce56102b718f3e4f4e78019e
2009-09-10 17:45:00 +00:00
dan
f3677212e3
Fix a problem with the sqlite3VdbeMayAbort() assert failing following an OOM.
...
FossilOrigin-Name: b3027863505fa8edf355f3f5eea4502ef365175e
2009-09-10 16:14:50 +00:00
dan
43bc88bbe8
Remove an ALWAYS macro around an expression that is sometimes false.
...
FossilOrigin-Name: f2a9ee722c568e73f2a08fb6a2886719850f2923
2009-09-10 10:15:59 +00:00
shane
0cab14167c
Reduce default SQLITE_MAX_TRIGGER_DEPTH when SQLITE_SMALL_STACK is defined.
...
FossilOrigin-Name: 913fb70ea85f05d94db5cf2e692a7c8b7489e3ba
2009-09-10 02:54:48 +00:00
dan
11b3879b18
Trying to open a transaction in one thread and close it in another is a misuse with LinuxThreads. Doing so may cause memory and file-descriptors to be leaked. Update an assert() and some test cases to account for this.
...
FossilOrigin-Name: ef99eb57c536d82e7c19fd3d990c17793cc64a3f
2009-09-09 18:46:52 +00:00
drh
3f022189dd
Suppress some harmless compiler warnings.
...
FossilOrigin-Name: f0c72a53c5d57d7487b48a06a40816153f47aaac
2009-09-09 16:10:50 +00:00
drh
f4cfac9d63
Bug fix in the SQLITE_OPEN_PRIVATECACHE option added a few minutes ago.
...
FossilOrigin-Name: f3a0f23bc77f8c73924f1d371afae9a0f65bae67
2009-09-09 15:29:41 +00:00
dan
ae0931edae
Add some tests that involve BEFORE UPDATE or BEFORE DELETE triggers messing with the row being updated or deleted. SQLite behaviour in this scenario is undefined, so the tests just check that the behaviour is relatively sane and there are no crashes.
...
FossilOrigin-Name: 9a4c59a2ddd0df2d9425097004b450a6685f2147
2009-09-09 15:06:10 +00:00
drh
c4c307a963
Update the README file to state that TCL is required in order to run
...
the makefiles for SQLite. Ticket [7d96113ff].
FossilOrigin-Name: ba20091ae8146d276414f97527bf63e50fac8691
2009-09-09 14:48:21 +00:00
drh
f1f12688d8
Added SQLITE_OPEN_SHAREDCACHE and SQLITE_OPEN_PRIVATECACHE flags as
...
possibilities to sqlite3_open_v2(), to override the global shared
cache mode setting. Ticket [9fd0bc36639c15]
FossilOrigin-Name: f509eb8b488bb39deda4ca88f66ed40c6784af02
2009-09-09 14:17:52 +00:00
drh
643a392270
Increase the size of bitvec objects to 1024 bytes on 64-bit systems.
...
FossilOrigin-Name: f1272b90f6078d301ab05592593e9415f2b2b90b
2009-09-09 12:41:17 +00:00
dan
0fe60783c1
Add a test case to show that [/info/29ab7be99f|29ab7be99f] is fixed.
...
FossilOrigin-Name: 135d656a20a2a450955ed9ec57d9637cf31493c6
2009-09-09 11:43:43 +00:00
dan
144926d8b6
Add a complicated assert() to check that statement transactions are opened when required.
...
FossilOrigin-Name: 28aa1f4ea8dad56ffedb31d6c2bc27c1d6be2407
2009-09-09 11:37:20 +00:00
dan
e0af83aca6
Combine the OP_Statement and OP_Transaction opcodes.
...
FossilOrigin-Name: aec9dbd8d21c55c3945287a3dfa55d3ed168f977
2009-09-08 19:15:01 +00:00
dan
2283d46cd6
If recursive-triggers are enabled, fire DELETE triggers if database rows are removed as a result of OR REPLACE conflict resolution.
...
FossilOrigin-Name: 85cb0c94a63eda5f059ebe40887c7af9b4869893
2009-09-08 15:55:15 +00:00
drh
345ba7db59
Additional simplifications in support of structural testing.
...
FossilOrigin-Name: 4ab8c841f818326b0b04b95e3edd828c77f109d9
2009-09-08 13:40:16 +00:00
drh
b7f1d9a747
Further simplifications to the VDBE - removing functionality that is no longer
...
used.
FossilOrigin-Name: b271e16621831957468a1d3925174aac73f58891
2009-09-08 02:27:58 +00:00
drh
3e9ca09453
Code simplifications, especially to the pseudo-table logic, and comment
...
improvements.
FossilOrigin-Name: 52449a9569b7142095cc88ee208b31cc59a3cab4
2009-09-08 01:14:48 +00:00
drh
417168ade2
Add the SQLITE_LIMIT_TRIGGER_DEPTH option to sqlite3_limit().
...
FossilOrigin-Name: d7dc8b433691745b3842282569f1573d1e057963
2009-09-07 18:14:02 +00:00
dan
2f8e4959d1
Merge [/src/vinfo/1958db4493461b3a54217a6a45f2730287107860|1958db4493] and [/src/vinfo/26cd015c0ee1c18dd37f11b47ce35cfa320b3514|26cd015c0e].
...
FossilOrigin-Name: ecbe0832be77599c7cc66fb9968d0f419000d231
2009-09-07 17:41:48 +00:00
dan
0c6621ac66
Fix a bug where a condition was incorrectly being compiled out when SQLITE_OMIT_VIRTUALTABLE was defined.
...
FossilOrigin-Name: 1958db4493461b3a54217a6a45f2730287107860
2009-09-07 17:32:34 +00:00
shane
cea72b2dc2
Warning cleanup from the MSVC compile.
...
FossilOrigin-Name: 26cd015c0ee1c18dd37f11b47ce35cfa320b3514
2009-09-07 04:38:36 +00:00
shane
e025d1d7e5
Attempt to handle numbers at the limits of the IEEE 754 range better (nan.test now passes).
...
FossilOrigin-Name: 2a74ae1969aeec93576a44e11177677e6f3cea9c
2009-09-07 03:48:52 +00:00
shane
dcabfcee27
Changes to internal AtoF to improve "accuracy" when measured against built-in GCC atof().
...
FossilOrigin-Name: 438e1577d0f9ceb2851ee0df0df18f0229eca491
2009-09-07 02:46:31 +00:00
drh
0c2694b744
Add the "unix-wfl" VFS that does whole-file locking in order to help NFS
...
do better cache coherency.
FossilOrigin-Name: 2aeab80e5b84f5e94c5c99b4adeca805601c844b
2009-09-03 16:23:44 +00:00
drh
d7d385dde0
Do not reuse function parameters in subsequent expressions since the
...
function call might have triggered a text encoding change.
Fix for ticket [2ea2425d34be].
FossilOrigin-Name: f22e388727f0ba0f187cdee51ff8ba17a5d50b8a
2009-09-03 01:18:00 +00:00
drh
4e0b31ceda
Documentation updates for the version info #defines and C interfaces.
...
FossilOrigin-Name: 69055e9b4cb6346e9e10fd9dd65e6ea06b959e76
2009-09-02 19:04:24 +00:00
dan
5e1a278879
Fix a problem in main.c. SQLITE_NoRecTriggers -> SQLITE_RecTriggers.
...
FossilOrigin-Name: 5ac69ed608affb4104b4665560a3a490ea5af217
2009-09-01 17:28:29 +00:00
dan
5bde73c4eb
Change "PRAGMA disable_recursive_triggers" to "PRAGMA recursive_triggers". Also a fix for compiling with OMIT_TRIGGER defined.
...
FossilOrigin-Name: e016cca36390451d5d1c6e0d1b3cdbd6d869be1a
2009-09-01 17:11:07 +00:00
dan
3c94888d07
Merge in changes to support recursive invocation of triggers (disabled by default).
...
FossilOrigin-Name: c1b388c30de1b660c56afbcac9c69700500808a9
2009-09-01 16:39:06 +00:00
dan
436355a091
Add new test script triggerC.test.
...
FossilOrigin-Name: a2a062a4b52f45af85c195582a36d1b76d2675db
2009-09-01 16:19:19 +00:00
dan
65a7cd1631
More fixes and comment updates.
...
FossilOrigin-Name: 38a9327bad1a01e3d7a47fad44ece2f6c7e88643
2009-09-01 12:16:01 +00:00
drh
5ec5319165
More thorough initialization of a buffer when writing the rollback journal
...
header, in order to prevent a harmless valgrind warning.
CVSTrac ticket #4039
FossilOrigin-Name: 5e2f5496834bffb79236f803cdfedb18fbd533b7
2009-08-31 16:09:58 +00:00
dan
2832ad4221
More fixes for test cases.
...
FossilOrigin-Name: 85d9f23be1e8673dbda42e43b9b23332ada9225f
2009-08-31 15:27:27 +00:00
dan
2bd935168e
Fix some authorization callback problems.
...
FossilOrigin-Name: 8a746fbfd51f70f56e25ade59df49d2dc03c131c
2009-08-31 08:22:46 +00:00
dan
c02008333c
Merge with main branch.
...
FossilOrigin-Name: 6e09e28751a7071969ef9f3445f4092d2c28f358
2009-08-31 05:39:58 +00:00
dan
523a087b9e
Fix another test problem and some instances where an OOM may cause a segfault.
...
FossilOrigin-Name: 31199db0f77cf4b32d5589a29abd9535b155164b
2009-08-31 05:23:32 +00:00
dan
76d462ee78
Fixes for new triggers scheme.
...
FossilOrigin-Name: 9eb91efda5241609ff18ff15ef5eaa0e86788eab
2009-08-30 11:42:51 +00:00
dan
165921a742
Changes to support recursive triggers.
...
FossilOrigin-Name: 9b9c19211593d5ff7b39254a29c284560a8bcedb
2009-08-28 18:53:45 +00:00
drh
5d00d0a8dc
Add a new source code logo gif.
...
FossilOrigin-Name: 6abcba1021b237452f542f1fbb69eb75d9f50f53
2009-08-28 00:49:03 +00:00
drh
2238dcccc7
Patch to the named semaphore locking mechanism used by VxWorks.
...
FossilOrigin-Name: 609c5341bea16e4e8bcd15388b209c753ca9e0bb
2009-08-27 17:56:20 +00:00
drh
67fba28055
Updates to the pluggable page cache documentation.
...
FossilOrigin-Name: 3085ad7612e2c50a2d7906e82b2d057954d9c3f9
2009-08-26 00:26:51 +00:00
drh
a8f576126e
Remove an unreachable branch from where.c in order to restore 100%
...
branch test coverage. Add assert() and testcase() macros to verify
that the branch is unreachable.
FossilOrigin-Name: 58db7e7166ccefef77b237b77e17f47d31ff41e0
2009-08-25 16:28:14 +00:00
drh
011cfca18e
Initialize variables differently in the range processing logic of where.c
...
in order to make sure variables are always initialized even following
an OOM error.
FossilOrigin-Name: 3fb3686a4502140720dc3710a28a4f4128ab6554
2009-08-25 15:56:51 +00:00
drh
333ceb9389
Attempt to clarify the meaning of a "parameter" in the sqlite3_bind() API
...
documentation.
FossilOrigin-Name: 9389e6a7dad7ba70923282d6fe45fbccd22f681e
2009-08-25 14:59:37 +00:00
drh
560168934c
Make sure that the output of EXPLAIN is right when the P4 argument of
...
an opcode is of type P4_MEM with the MEM having type MEM_Blob.
FossilOrigin-Name: 6a623e6cf0370456232497a84366d18fa180debb
2009-08-25 14:24:04 +00:00
drh
ec9b31f033
Avoid calling sqite3VdbeRecordCompare() with uninitialized memory following
...
an OOM. Doing so is harmless, but it worries valgrind.
FossilOrigin-Name: d33b9eb2567561ccfdc588c95604cce9b697d768
2009-08-25 13:53:49 +00:00
drh
ff104c17b7
Fix an uninitialized variable in sqlite3VdbeIdxRowid().
...
FossilOrigin-Name: 6e787e18fa87f5463bf62cd91a0c0855099693f0
2009-08-25 13:10:27 +00:00
drh
fd3ca1c680
Merge together the os_unix.c fix of [aa6acfa8ca] and the trigger fix of
...
[dee1b8eb40].
FossilOrigin-Name: 1e2c6e134e04dd22795ad4839874ec0edd9b0970
2009-08-25 12:11:00 +00:00
dan
15edd587fd
Fix a bad interaction between "proxy-locking" and [ http://www.sqlite.org/src/vdiff/aa6acfa8caa2ef59b4c16dfe42c4b5644da96905 |aa6acfa8ca].
...
FossilOrigin-Name: 2a5c9e1dbf7f5f4b2081c964450a9305a4516f5b
2009-08-25 05:57:47 +00:00
drh
cee4c93771
Update the version number to 3.6.18, even though the actual release of
...
that version is still a few weeks away.
FossilOrigin-Name: c0ea4e9a7dcd66c079f917af47157f6ab7d79401
2009-08-24 19:37:20 +00:00