Commit Graph

7151 Commits

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