1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-10-24 09:53:10 +03:00
Commit Graph

2946 Commits

Author SHA1 Message Date
pweilbacher
4a53cdbc34 Adapt returns of the os2Read() function to those of other platforms using checkin (3549) to prevent possible corruption (CVS 3617)
FossilOrigin-Name: ba76107cd1fc1898f5357b20b339727e2e034e23
2007-01-28 21:12:13 +00:00
drh
795ab9bbd8 Fix a documentation comment in vdbe.c. Ticket #2188. (CVS 3611)
FossilOrigin-Name: 3eec703beb91be44ded629335001c238052480e7
2007-01-27 13:37:22 +00:00
drh
a3eb4b44c4 Parser changes to allow parenthesized numerical arguments to pragmas,
in support of the integrity_check enhancement of check-in (3609)
and ticket #2176. (CVS 3610)

FossilOrigin-Name: ab6322bf9398c2989b648b24c1ebdf09493accdf
2007-01-27 02:38:29 +00:00
drh
1dcdbc0639 Limit the number of errors returned by PRAGMA integrity_check to 100 by
default.  Specify an alternative limit using an argument to the pragma.
Ticket #2176. (CVS 3609)

FossilOrigin-Name: d564a039f27be2bb2c3973e79dc99b25869139da
2007-01-27 02:24:54 +00:00
drh
4e78be693c Make sure the vdbeInt.h file is not #included multiple times. Ticket #2194. (CVS 3608)
FossilOrigin-Name: 93edd3b0565d08383b3034c57f221073fde6de4b
2007-01-26 21:08:04 +00:00
drh
23a4d14e79 Fix prototypes for the parser. Syntactic change only - no effect on
object code.  Ticket #2193. (CVS 3607)

FossilOrigin-Name: 02990fabd1c68fb51afc91a1b720802ef86bfec6
2007-01-26 19:31:00 +00:00
drh
485f00391b Add code to select.c for printing the contents of parse-tree structures.
The code is normally omitted.  You must compile with -DSQLITE_TEST
or -DSQLITE_DEBUG to enable it. (CVS 3606)

FossilOrigin-Name: 1b26d6875612a0ed25d6e293f005ea4966692759
2007-01-26 19:23:33 +00:00
drh
0ee5a1e763 Fix a (harmless) assertion fault on nested views where the inner views
are compound selects.  Ticket #2192. (CVS 3605)

FossilOrigin-Name: 942e7193bbf1ffe9a703891d175e016631e2ad5c
2007-01-26 19:04:00 +00:00
drh
e31a1fb018 Make sure the loadext.c module works even if all SQLITE_OMIT macros are
defined.  Tickets #2184 and #2069. (CVS 3604)

FossilOrigin-Name: e1fae43c89253fe5ca85bd149cd7697234f9aa91
2007-01-26 13:08:24 +00:00
drh
6c9121a7dd Work around issues with certain C++ compilers by adding a typedef
to sqlite3.h.  Ticket #2191. (CVS 3603)

FossilOrigin-Name: 31e8cf7f30afe14f0866ea71eebbda9755ddedf8
2007-01-26 00:51:43 +00:00
drh
f2d315d0c2 Fix an additional problem with the IS NULL optimization on LEFT JOINs.
Ticket #2189.  See also ticket #2177. (CVS 3602)

FossilOrigin-Name: 358dd82d3a921228155e2cf9e22aedd2b651ca9c
2007-01-25 16:56:06 +00:00
drh
c49de5d98c Make sure the IS NULL optimization introduced by check-in (3494) correctly
handles a LEFT JOIN where the a term from the right table of the join uses
an IS NULL constraint.  Ticket #2177.  This check-in also adds the new test
cases that were suppose to have been added with (3494) but which were
mistakenly omitted. (CVS 3595)

FossilOrigin-Name: 335863e4d16113fb9ecebce35d2db043771d98b1
2007-01-19 01:06:01 +00:00
drh
f6d8ab87c6 Fix a bug in sqlite3_prepare_v2() introduced by checkin (3578) and reported
on the mailing list. (CVS 3592)

FossilOrigin-Name: 87248470362f444f2339fee18d3624e8544f5256
2007-01-12 23:43:42 +00:00
drh
d2832bf1f0 Make the AreFileApisANSI() call a macro with a value of 1 on wince.
Ticket #2163. (CVS 3590)

FossilOrigin-Name: a72c950cdbb7ad14572ccdf9b94ceac8ea0a2588
2007-01-10 18:56:15 +00:00
drh
a09883f377 Corrections to the documentation on sqlite3_exec(). Ticket #2161. (CVS 3586)
FossilOrigin-Name: afd33f62ecf9f14255f5593ea87636b9deab7b92
2007-01-10 12:57:29 +00:00
drh
86939b598f Corrections to the documentation for sqlite3_busy_handler(). Ticket #2160. (CVS 3585)
FossilOrigin-Name: 9614c0f99f27e8c6576a1a3ec5573b9bc414e8a8
2007-01-10 12:54:51 +00:00
drh
9cce710942 Fix the windows OS layer so that it returns detailed IOERR error codes. (CVS 3583)
FossilOrigin-Name: 4b36de46c42e2e42d611b38ff18949bea55c803b
2007-01-09 17:18:19 +00:00
drh
fb02d26400 Work around win2k problems so that single-character filenames can be
used.  Ticket #2151. (CVS 3582)

FossilOrigin-Name: c4eb2100c39356e1816cc6514d65155e47ea1a1d
2007-01-09 15:32:17 +00:00
drh
6be36cb6ea Do not use the symbol "interrupt" since that is a reserved word in
OpenWatcom.  Ticket #2159. (CVS 3579)

FossilOrigin-Name: 9960ba576827f8ced6eac101313a481f2a2f4b69
2007-01-09 14:37:17 +00:00
drh
3c23a88562 When an automatic re-prepare occurs, take care not to reset the internal
schema symbol table.  Ticket #2156.  This change also includes some debugging
enhancements. (CVS 3578)

FossilOrigin-Name: 43fe7fc1c38f8d9b3c1346cb1d890c2e25cefe15
2007-01-09 14:01:13 +00:00
drh
c515525765 Fix a critical bug in sqlite3_prepare_v2 that can lead to segfaults when
the schema changes and the statement is recompiled automatically.
Ticket #2154. (CVS 3576)

FossilOrigin-Name: 3401388dba6c150f788397a4dfbcdb01313247e2
2007-01-08 21:07:17 +00:00
drh
622fa9a80e Fix another round-off problem in strftime(). Ticket #2153. (CVS 3574)
FossilOrigin-Name: d49ddc5ff05dd65e73edfa76db7e1af36967d81a
2007-01-08 16:19:07 +00:00
drh
20f99c438f Updates to the sqlite3 command-line shell documentation. Ticket #2144. (CVS 3573)
FossilOrigin-Name: 3a422bb9eedf5357ce4d3bed68981c000eb96ee4
2007-01-08 14:31:35 +00:00
drh
c2c9eef6b3 Fix a round-off error in the %W and %j conversions of the strftime() function.
Ticket #2150. (CVS 3570)

FossilOrigin-Name: 52067937803e6b36afc8f11c5d24059414208b77
2007-01-08 13:07:30 +00:00
drh
5a91a537db Clear a compiler warning when compiling with -DSQLITE_OMIT_VIRTUALTABLE. (CVS 3566)
FossilOrigin-Name: 520f6583e3467b964dcdba873857ace5a9c4ee19
2007-01-05 16:39:43 +00:00
drh
df09df6ad4 Remove redundant variable. (CVS 3565)
FossilOrigin-Name: 2a7f5aaf8245026edf9cd8f6abc90e87cd7747b2
2007-01-05 14:41:06 +00:00
drh
aedd892e0c Suppress compiler warnings. Fix a bug in IO error detection on windows. (CVS 3564)
FossilOrigin-Name: daed2bab00ea3952d2d4e5182ca07653b9d80ac2
2007-01-05 14:38:54 +00:00
drh
24c9a2eeb2 In the btree.c, when releasing the page1 lock, first make sure the
pager has not reset and released the lock already.  This fixes a bug
introduced by (3549). (CVS 3563)

FossilOrigin-Name: 36a2db96efa7f227c0a39e58fd83d56cc491472b
2007-01-05 02:00:47 +00:00
drh
25403650c3 Fix the user_version and schema_version pragmas so that they set a result
column name.  Ticket #2143. (CVS 3560)

FossilOrigin-Name: f81c4227c26a4d43993904ab05c1eb9f988e3b66
2007-01-04 22:13:41 +00:00
drh
c2ee76cb1c Fix a memory leak introduced by the latest changes to pager.c. (CVS 3554)
FossilOrigin-Name: 8cad5d671be9be3f7dd7dab99ad65c0fa21931ad
2007-01-04 14:58:14 +00:00
drh
89c69d00bd Fix for ticket #2141. (CVS 3552)
FossilOrigin-Name: 70f5f3b85f30bbec0ddc59ba364e1229c09ed636
2007-01-04 01:20:28 +00:00
drh
0bc5370cac Add a comment to vdbe.c to explain the use of an uninitialized variable. (CVS 3551)
FossilOrigin-Name: 1773eb7badf105b0e23316d4236903049c354c71
2007-01-04 01:20:11 +00:00
drh
dddb2f23e2 Clean up memory leaks and uninitialized variables detected by valgrind.
Identify all tests where we deliberately derefence freed memory by adding
a "-misuse" tag. (CVS 3550)

FossilOrigin-Name: 70a862702d6dfcfe73bdeef8f0502c6c50e32a3a
2007-01-03 23:37:28 +00:00
drh
bafda0962e Additional changes in the pager and os interface layers to fix problems that
might be contributing to recently observed database corruption. (CVS 3549)

FossilOrigin-Name: a593d5743eab12c0f93a7bc436f0d69dfab0c387
2007-01-03 23:36:22 +00:00
drh
1aa2d8b55b Make sure that the database size cache in the pager is invalidated whenever
the database is unlocked.  A stale value in the database size cache can
result in database corruption on a heavily loaded system running
autovacuum. (CVS 3548)

FossilOrigin-Name: 6806b9ecb5e3b90e793c5862404e76485df33b25
2007-01-03 15:34:29 +00:00
drh
588f5bc31b Update the vtab_err test to check for -DSQLITE_MEMDEBUG=1 and skip the tests
if missing.  Pager is more careful to clear its file size cache.  Remove
an assert() in VDBE that might fail on a corrupt database file. (CVS 3547)

FossilOrigin-Name: bf1afd016ad71dac90e58540122108f92e77ce3d
2007-01-02 18:41:54 +00:00
pweilbacher
4fffb4f0ef OS/2 change: add safeguard to be able to use SQLite loaded into high memory on OS/2 when compiled with GCC 3.3 or later. Currently, this is only used when building within the Mozilla source tree. (CVS 3546)
FossilOrigin-Name: 720189b8fafa61e5b712b409e76c368079b4bf96
2006-12-22 20:33:13 +00:00
drh
584c094ba4 More fixes to the microsoft code-page nightmare... (CVS 3544)
FossilOrigin-Name: 0b47d88060069781e7e184806d6ecaeff9b9e5d1
2006-12-21 03:20:40 +00:00
drh
2a4d54b2cd Use GetProcAddressA() on wince. Ticket #2123 (CVS 3543)
FossilOrigin-Name: e3dddd1cef5877c009852fd7f484973843e26e00
2006-12-21 02:21:56 +00:00
drh
c96d49892c Reduce the number of utf8->unicode conversions required in wince. Ticket #2122 (CVS 3542)
FossilOrigin-Name: 6d2ff0962dff0477fe2af0323032dc16337f42ab
2006-12-21 01:37:39 +00:00
drh
761df87ea5 Move the shared-library loading routines into the OS portability layer,
thus enabling the os_win.c code to handle the character encoding
confusion of win95/nt/ce.  Ticket #2023. (CVS 3541)

FossilOrigin-Name: a1bcc6de578992b28924c1cf974ea58251454e2d
2006-12-21 01:29:22 +00:00
drh
ec4d88fab5 Change a parameter type from "int" to "DWORD" in the windows interface.
Ticket #2122. (CVS 3540)

FossilOrigin-Name: cca1eb3dfaa67d64ced3e49e7ddbd8db27a5526a
2006-12-21 00:46:42 +00:00
drh
644a5299aa The xFilter method is not optional. (CVS 3539)
FossilOrigin-Name: 6fdbd3bc91559ed95314842c0df33adbf276913e
2006-12-20 14:53:38 +00:00
drh
3f87d2a37e Initialize a variable to avoid compiler warnings and human confusion.
Ticket #2117. (CVS 3538)

FossilOrigin-Name: 951af8d5c57d665ee2ad3ee09ce34c023aa9e771
2006-12-20 14:31:24 +00:00
drh
3c7a1580c9 Patch to get extension loading working on wince. Ticket #2023. (CVS 3537)
FossilOrigin-Name: a81f3ddfd0626ae642c5ffd27a23c568d06f58dc
2006-12-20 03:37:34 +00:00
drh
cc19254de9 The query optimizer does a better job of optimizing out ORDER BY clauses
that contain the rowid or which use indices that contain the rowid.
Ticket #2116. (CVS 3536)

FossilOrigin-Name: f245f5c2c2d337fe6458824beb7f9e721837765f
2006-12-20 03:24:19 +00:00
drh
2b7acc3551 Allow constraint names on DEFAULT values in a table definition.
Ticket #2109. (CVS 3535)

FossilOrigin-Name: 893d58c23da2a9b900a13eaa5202d94429862136
2006-12-20 02:15:00 +00:00
drh
f533acc0a7 Build without warnings and pass all tests with SQLITE_OMIT_LOAD_EXTENSION.
Ticket #2113. (CVS 3534)

FossilOrigin-Name: c3d118b40811b201e4a98b62549c5439d7d5098d
2006-12-19 18:57:11 +00:00
drh
cf68ae91ea Fix a typo in shell.c. Ticket #2111. (CVS 3533)
FossilOrigin-Name: 6f8a56231c4d0d990c54365f0ff0544bd8b3caf8
2006-12-19 18:47:41 +00:00
drh
9404d50e3b Use sqlite3_mprintf() instead of strdup() to reduce libc dependencies.
Ticket #2114. (CVS 3532)

FossilOrigin-Name: bf4a78cb315c0b1fca31c6f596ff0a8ece96860f
2006-12-19 18:46:08 +00:00