dan
2f56da3f26
Changes to various test scripts so that veryquick.test runs with OMIT_COMPOUND_SELECT defined.
...
FossilOrigin-Name: 76bb649ee2633226324130f5898622c348f93769
2012-02-13 10:00:35 +00:00
dan
d3eaebd414
Fix a typo in the type of the fchown() function in os_unix.c.
...
FossilOrigin-Name: bfbfe05b81919ecc3d6e7be4c24994f795f16582
2012-02-13 08:50:23 +00:00
drh
23c4b97329
Make fchown() an overrideable system call in os_unix.c.
...
FossilOrigin-Name: 98efac9630ca96ba0497c8e206dc5022612ff381
2012-02-11 23:55:15 +00:00
mistachkin
b482a4462c
Cleanup some directories and files left by the MinGW build, even when using the MSVC Makefile.
...
FossilOrigin-Name: 3ab89e255d1f2f8004d3256515ac43f74e57f39b
2012-02-11 22:19:26 +00:00
mistachkin
a844f5134e
Revise the preprocessor directives used to handle malloc.h and _msize, in order to detect and handle the MSVC special-case automatically.
...
FossilOrigin-Name: 90e73dc3682680847238e625d415b27fa9c59ba8
2012-02-11 21:56:59 +00:00
drh
3ee3484c4a
Silence GCC compiler warnings about unused return value from fchown().
...
FossilOrigin-Name: b022547389a40930cf0d2a75f5eb293acc9fbfe0
2012-02-11 21:21:17 +00:00
drh
af8001bfb3
Another attempt to fix warnings in the randomFunc() function.
...
FossilOrigin-Name: 768df4e11670ac704d96e3b601d009aaa2fd793a
2012-02-11 19:53:24 +00:00
drh
ac7c3ac150
When creating journal files (including -wal and -shm files) try to set the
...
ownership to be the same as the original database. This will prevent root
from locking out the original owner of the file.
FossilOrigin-Name: 1254dffe4071656a783cd000b1dd40c975ac18cb
2012-02-11 19:23:48 +00:00
drh
c96d1e79a8
Remove a redundant test from the shared-memory logic in os_unix.c.
...
FossilOrigin-Name: 31142ca795005bf664f34000591e6572c72652f2
2012-02-11 18:51:34 +00:00
drh
96d7b510e9
Fix a warning coming from the Solaris Studio compiler.
...
FossilOrigin-Name: 33294bbd1724665832464b33f865a29dc82b90f6
2012-02-10 20:43:05 +00:00
drh
76aad0d1df
Disable the ability to have multiple values in the VALUES clause of an
...
INSERT statement when SQLITE_OMIT_COMPOUND_SELECT is used.
FossilOrigin-Name: 92131195d0c24c0116992db51ed5d8316626ba57
2012-02-10 17:38:58 +00:00
drh
c18b40462b
Fix an important bug in the handling of EINTR in unixRead(). Never came
...
up on x86 but crashes on sparc.
FossilOrigin-Name: 1a16db0bca717a2582a48332d81854ca90d6d49b
2012-02-10 03:10:27 +00:00
drh
bb8c1b5e63
Fix a boundary case for the integer affinity routine for non-x86 processors.
...
FossilOrigin-Name: bea05ddddf5089bac9b1aa9fe1d2cd24b069ad44
2012-02-10 01:25:13 +00:00
drh
86c5a930e2
Add an autoconf test for malloc.h and use the results of that test to
...
conditionally #include the malloc.h header file.
FossilOrigin-Name: 16a471129d497f45935b5d00df7ce9ec731ee498
2012-02-08 12:13:28 +00:00
drh
cc3b4f8c55
Command-line shell enhancements: Reorganize the "usage" comment so that
...
options are in alphabetical order. Add the new "--cmd" option. Allow
either "--option" or "-option" for options.
FossilOrigin-Name: 9497893b1b9219eac4ec2183bd90b4e4b860d9fe
2012-02-07 14:13:50 +00:00
drh
3fb757b487
More structure packing for smaller objects and less memory usage.
...
FossilOrigin-Name: f14e7f29ff7f2d7706dc3cdd715e103e04ba0ef1
2012-02-02 21:02:43 +00:00
drh
2cbd78b70e
Reduce the size of the MemPage object by about 32 bytes. Other structure
...
size optimizations.
FossilOrigin-Name: 21695c3476804477cb378b5a643196380e7e2281
2012-02-02 19:37:18 +00:00
drh
5a1785cbf2
When non-aggregate columns occur in an aggregate query with a single min()
...
or max(), then the values of the non-aggregate columns are taken from
one of the rows that was the min() or max().
FossilOrigin-Name: fa13edd39c3b8ec752d4e90a69ebf7fed4ebf62f
2012-02-02 18:46:41 +00:00
drh
94a6d998f6
Fix a problem with NULL handling in aggregate min/max when returning
...
values from the row containing the min or max.
FossilOrigin-Name: f27c7b4fb193126548e6a620ac89664d1efa3856
2012-02-02 18:42:09 +00:00
drh
7a95789c0c
For queries of the form "SELECT p, max(q) FROM t1", the value of column p
...
returned is the one on the same row that holds the maximum value of q.
FossilOrigin-Name: adb29232b659c5332b6841776372407fcc350b08
2012-02-02 17:35:43 +00:00
drh
a451017d62
Data structure cleanup. Remove unused fields. Rearrange other files for
...
tighter packing and reduced memory usage.
FossilOrigin-Name: 0bc594e861ae1142e8c6c83f39b095e1432856bf
2012-02-02 15:50:17 +00:00
drh
6c5351589c
Simplified array allocation in the IdList and AggInfo objects.
...
FossilOrigin-Name: 25df2a7458d025bc00380b4a0893637639f9f0d4
2012-02-02 03:38:30 +00:00
drh
a3cc3c9616
Fix a possible segfault after an OOM fault. This has been in the code for ages
...
but only expressed itself following the previous check-in.
FossilOrigin-Name: a3553b8a035b70e76a5a325b9e9f379f84de3955
2012-02-02 03:11:40 +00:00
drh
d872bb180c
Remove the nAlloc field from the ExprList object.
...
FossilOrigin-Name: 5963de303a9106b446a9423aa838bfdf6bc1e7f3
2012-02-02 01:58:08 +00:00
drh
c35f3d5027
Very small performance enhancement and reduction in size of the sqlite3_stmt
...
object.
FossilOrigin-Name: a38d57a4e5d79a0baefdf776e0e2d61423681a4f
2012-02-01 19:03:38 +00:00
drh
0152268793
Fix ALTER TABLE RENAME so that it correctly handles triggers that attach
...
to the table using the name in a different case.
Ticket [ae6794effd404].
FossilOrigin-Name: 0d78ebb8e41ba08b446b44694d9433e1e90e0a7e
2012-02-01 01:13:10 +00:00
drh
548af8b69e
Fix a compiler warning in FTS4.
...
FossilOrigin-Name: b4cad1ce78e6bb967c472bec5c562a24b4dfebaf
2012-01-31 23:34:21 +00:00
drh
38d9c612ed
Futher pedantic fixes to the sqlite3_uri_boolean() interface.
...
FossilOrigin-Name: 77b3430de69e23ba3feda3d618fe4880dd465023
2012-01-31 14:24:47 +00:00
drh
0c7db64045
Improvements to the documentation for sqlite3_uri_boolean().
...
FossilOrigin-Name: b0a161791d66a40cea81dfc22f1cd2e9dfd067d0
2012-01-31 13:35:29 +00:00
dan
1feff7f1c0
Change a comment in test script backup.test.
...
FossilOrigin-Name: 313546b4566095aedccdaa27037036129b64d438
2012-01-31 05:11:50 +00:00
drh
908c005c72
Bring the documentation and implementation of sqlite3_uri_boolean() into
...
closer agreement. Ticket [5f41597f7c9c]
FossilOrigin-Name: 7b053d699ffa1da9c50f1a19edb052c0f014058a
2012-01-30 18:40:55 +00:00
drh
caffb1a532
Fix compiler warnings in the TCL test harness.
...
FossilOrigin-Name: c4cd38a0c71e2887e47bebb9d10baf30802a7f13
2012-01-30 18:00:31 +00:00
drh
d794e8b026
Do not rely on the _WIN32_WINNT macro as vs2005 does not define it by default.
...
Instead, always assume winNT unless the makefile explicitly sets
SQLITE_OS_WINNT=0.
FossilOrigin-Name: 1ce4d21d521c383f2607222006023b6812f147bc
2012-01-30 16:02:43 +00:00
drh
b21a8e4834
Update the .dump command of the command-line shell so that it (1) avoids
...
putting the semicolon of a DDL statement on the same line as a comment,
(2) avoids long expression, even when dumping a table with many columns, and
(3) avoids unnecessary quoting of the table name. This fixes tickets
[c04a8b8a4f] and [232637c465].
Shell change only; no changes to the SQLite core.
FossilOrigin-Name: e6eea8d50d6c307e3e34891758ed4912d368580b
2012-01-28 21:08:51 +00:00
drh
8395b7b6cb
Remove a couple of unnecessary nonterminals from the grammar.
...
FossilOrigin-Name: 2b2a7d8d736d1e72f847f443b9957e41da6149c9
2012-01-28 19:44:22 +00:00
drh
b421b894e0
Add support for IF NOT EXISTS on CREATE VIRTUAL TABLE.
...
FossilOrigin-Name: 230983e86a897caa91a487ef2d4c1c7fb7c79f10
2012-01-28 19:41:53 +00:00
drh
dfada7ce06
Update the version number to 3.7.11 and rerun autoconf.
...
FossilOrigin-Name: 6f9b265dd099928208022f4006c93173a3c0b1c8
2012-01-28 15:26:27 +00:00
drh
7b113bab79
Add support for multiple rows of VALUES in an INSERT statement.
...
FossilOrigin-Name: eb3b6a0ceb8bfb9fd59ff5fec420f863a9b5c4e4
2012-01-28 15:22:22 +00:00
drh
4d0d91666c
Only invalidate the schema when the OP_ParseSchema opcode fails, not
...
on any general failure of a vdbe program.
FossilOrigin-Name: 11f68d997da4aadf3f51c12c5139f3fdda8678bf
2012-01-25 20:43:22 +00:00
dan
585db0e23a
Fix an FTS problem triggered by querying for an N character prefix using an N+1 character prefix index after rows have been deleted from the FTS table.
...
FossilOrigin-Name: c05c3fd20d93f430140d762ead23bacd337ffb4d
2012-01-25 16:29:45 +00:00
dan
42829635a2
Changes to the async-io module so that the xFileControl method returns SQLITE_NOTFOUND when a file-control is not recognized and so that it adds the second nul-terminator byte to filenames passed to the xOpen method of the underlying VFS.
...
FossilOrigin-Name: 7036886e83fccad32187668306ee2ae3f950dfce
2012-01-24 10:08:26 +00:00
drh
aa538a581a
Make the use and function of SQLITE_DYNAMIC clearer. Add assert() statement
...
to help ensure that SQLITE_DYNAMIC is not misused.
FossilOrigin-Name: ab80f2c3b2f1eea6e35989d3e9b6137b51091754
2012-01-19 16:57:16 +00:00
drh
0541b3d427
Avoid overriding the malloc_usable_size symbol using the C preprocessor as
...
this might be confusing the build on some systems.
FossilOrigin-Name: bbaec351dd7784fd0af24b916110844176810f82
2012-01-18 18:22:44 +00:00
drh
c710ccb09e
Add the SQLITE_WITHOUT_MSIZE and SQLITE_WITHOUT_ZONEMALLOC macros in mem1.c
...
to disable the use of _msize() on windows and the zone memory allocator
on Apple products, respectively.
FossilOrigin-Name: 238e35a4411a5b2231576254dba39b802947d4f3
2012-01-18 12:46:47 +00:00
drh
3f4aab1cc9
Remove a redundant assignment from the VM.
...
FossilOrigin-Name: d0dabe2f37b5fa7c2c6bb728b8591af00cdd835b
2012-01-18 01:14:42 +00:00
mistachkin
14a55b7122
Fix typo in comment.
...
FossilOrigin-Name: 199edb6869977ccd7abf886af5cf9b344c857d1e
2012-01-18 01:09:57 +00:00
drh
33f111dc72
Remove the undocumented PRAGMA omit_readlock hack.
...
FossilOrigin-Name: 96900c47e4fc6ed55cefc10d55d3d8d16bcb1d31
2012-01-17 15:29:14 +00:00
drh
18f52e0021
Enhance the command-lin shell to interpret CSV files as described by
...
the wikipedia article on CSV.
FossilOrigin-Name: 93aa17d866873e11dde5ffbefe74497f229977c1
2012-01-16 16:56:31 +00:00
dan
8e05180fb8
Test the fts4 content and prefix options together.
...
FossilOrigin-Name: de11cd5cc903e56ff641079bc64dd0ae5e133aa7
2012-01-16 16:39:36 +00:00
drh
6157c94cff
Version 3.7.10
...
FossilOrigin-Name: ebd01a8deffb5024a5d7494eef800d2366d97204
2012-01-16 13:28:40 +00:00
drh
710658c771
Rebuild the configure script using autoconf 2.68 since autoconf 2.65
...
(previously used) appears to build incorrect scripts for Mac.
FossilOrigin-Name: 9da1cd0a06aca4eb3fb21fa4d321b9e3e07444b4
2012-01-16 13:00:05 +00:00
mistachkin
1b904bf766
Make sure the EXTERN macro is properly defined when building targets that require it (e.g. on MinGW).
...
FossilOrigin-Name: 88ad2f23c5036cbb4a69b73ce5792bd5c33a9177
2012-01-14 03:34:24 +00:00
drh
b04f3c1525
In the multiplexor routine that determines the size of an overflow file,
...
return 0 and leave the error code unchanges if there were prior errors.
This prevents some I/O errors from going unreported in nx-devkit tests.
FossilOrigin-Name: 6da0821a4717253221b25fb22e05cd9c13492f3d
2012-01-14 00:42:40 +00:00
drh
710869dd17
Fix documentation typos. No changes to code.
...
FossilOrigin-Name: 0b857613e2415a59e61df2181ff33aa12bed987e
2012-01-13 16:48:07 +00:00
drh
68bd4aa21d
Add the -uri option to the usage comment that is printed by the "sqlite3"
...
TCL command when an unknown command-line option is supplied.
FossilOrigin-Name: 7987e285786161b1513ab77694d79e95fc76b0e5
2012-01-13 16:16:10 +00:00
drh
065dfe692a
Update the documentation for the sqlite3_uri_*() routines to make it clear
...
that there argument must be a database filename passed into xOpen().
No changes to code.
FossilOrigin-Name: 08230a3a8c88f275bfc0ba72d3fea3260f24fc63
2012-01-13 15:50:02 +00:00
dan
983371d999
Fix backup2.test so that it passes on OpenBSD (which produces a slightly different error message in one case).
...
FossilOrigin-Name: 227cfe11c4a1c095ccad76116dc4a68cccc5e8f0
2012-01-13 15:21:07 +00:00
dan
961e4ca413
Do not throw an error from within test_journal.c if a database file size is not an integer multiple of the page-size.
...
FossilOrigin-Name: 3f4899a923f06d48edf6eeeb1c52b01958779efc
2012-01-13 14:50:29 +00:00
dan
6b4e9a849b
Omit test file zerodamage.test from the inmemory_journal permutation.
...
FossilOrigin-Name: 0c0051b1a548591180e4b02f2e74a1a8a63318a3
2012-01-13 10:51:52 +00:00
dan
9d69c5d1b1
Fix test case issues related to errors in file-controls and the PSOW flag.
...
FossilOrigin-Name: 5afbcd49f92e13d1654c1486e19d7e1bb4d3b024
2012-01-13 10:04:10 +00:00
dan
5d8341a9e9
Fix issues in test cases so that they work with DEFAULT_AUTOVACUUM defined. And with a small default cache-size.
...
FossilOrigin-Name: a298465c3919c331b9d8b60351c42b96d2efacdc
2012-01-12 16:41:30 +00:00
dan
6c2688c8d4
Fix typos in a testcase() macro introduced by the previous commit.
...
FossilOrigin-Name: 0467742fd6ef33dfe4df66e5046f075fe8e0260d
2012-01-12 15:05:03 +00:00
dan
bb246c4da0
Remove some assert() statements that can fail with corrupt databases.
...
FossilOrigin-Name: 7654ae71bd26ae5d713935624d2b6cb8d2e4633f
2012-01-12 14:25:55 +00:00
drh
a71a98df88
Remove code made unreachable by the enhancement of the previous check-in.
...
FossilOrigin-Name: 9e31a275ef494ea8713a1d60a15b84157e57c3ff
2012-01-11 16:16:08 +00:00
drh
935de7e81a
Make the pager less vulnerable to problems caused by shifting sector sizes
...
when rolling back a hot journal.
FossilOrigin-Name: 629108c8e5376f989cd66e11437949a54c33a5b8
2012-01-11 15:47:42 +00:00
dan
72cd90ac44
Fix the sqlite3_quota_file() function in test_quota.c so that it adds the second nul-terminator to all file names that will be passed to a VFS xOpen method.
...
FossilOrigin-Name: 3013f9a67cc6097c14e40a6155c1401f51f4da78
2012-01-11 11:20:42 +00:00
mistachkin
e290919ae2
Prevent winOpenSharedMemory from masking the real return code from its call to winOpen. Also, add asserts to check the double-zero termination of database file names.
...
FossilOrigin-Name: 93a65776dc8f496485e206a5eab11eeba579b5da
2012-01-11 01:01:02 +00:00
drh
69578ac481
Make sure filenames handed to the VFS by the fake_big_file test procedure
...
are double-zero terminated.
FossilOrigin-Name: d0a868607e8f46941ece9f9d7b8ba220a7fb4e2b
2012-01-11 00:38:51 +00:00
drh
c02a43afae
Only require double-zero terminators on database filenames, not any every
...
files supplied to the xOpen method. This backs out [2544f233f1]. Also
refactor the fillInUnixFile() routine in os_unix.c to reduce the number
of parameters.
FossilOrigin-Name: cb774b26e13745cfad0d76a71e47466d703e0007
2012-01-10 23:18:38 +00:00
drh
c02372ce6f
Refactor sqlite3OsFileControlNoFail() into sqlite3FileControlHint().
...
FossilOrigin-Name: 722735a4f316630c907149f08d3d7dccc0facd9a
2012-01-10 17:59:59 +00:00
dan
04333f9b3e
Avoid passing strings with a single nul-terminator (two are required) to the VFS xOpen() method from within the code that checks to see if a master-journal file may be safely deleted.
...
FossilOrigin-Name: 2544f233f1041a42bbdbb5413d2bc92b2a2e0397
2012-01-10 17:28:10 +00:00
dan
6f2f19a154
Add function sqlite3OsFileControlNoFail(), which is the same as sqlite3OsFileControl() except that it does not simulate OOM errors. This saves adding calls to the BenignMalloc() functions around each of the invocations of sqliteOsFileControl() that ignore the return code.
...
FossilOrigin-Name: af59b182d797642e5ec3ddf291cf62662a136bd1
2012-01-10 16:56:39 +00:00
drh
2bfe5b316c
Check the return code from sqlite3OsFileControl() in sqlite3BtreeCopyFile()
...
and report any errors that it generates.
FossilOrigin-Name: 7f852ac6435f1c9e25b07f816cca5ba40484579e
2012-01-10 16:40:50 +00:00
drh
92c45cf0fe
Remove the BenignMalloc() from around the call to FCNTL_OVERWRITE. Add
...
new ones around sqlite3OsDelete(). Fix an assert that causes problems for
the nx-devkit.
FossilOrigin-Name: 38bc4236d5a9d9f22a525bf9308d90cd4d9ce5a4
2012-01-10 00:24:59 +00:00
drh
3cb2f6e60e
Cosmetic changes to lemon. No changes to core functionality nor impact on
...
SQLite.
FossilOrigin-Name: 393fc78a18004c839d889de2a25ec046ad6f13fc
2012-01-09 14:19:05 +00:00
drh
ec0c765d9e
Make sure the multiplexor does not create unnecessary overflow files.
...
FossilOrigin-Name: 1238619756c0c26e43d3c1c873cbdeca22ce9d61
2012-01-09 13:41:59 +00:00
dan
730f85a34e
Have test_multiplex.c add a second nul-terminator byte to the strings that it passes to the xOpen method of the underlying VFS, in case that VFS passes the string to sqlite3_uri_parameter() or similar.
...
FossilOrigin-Name: 12f5b8c9c9a15bd9e6aabdc708d4e869ff918e76
2012-01-09 11:37:34 +00:00
drh
45d29309a7
Fix typos in commands. Combine the ExpandBlob and expandBlob macros into one.
...
FossilOrigin-Name: fc9179e154751b51ddef429600d30a89d4a098bd
2012-01-08 22:18:33 +00:00
drh
d522620a7d
Make sure the shared-memory filename sythesized by os_win.c is
...
double-zero terminated, so that it can be used with
sqlite3_uri_parameter().
FossilOrigin-Name: 429380f99c59ca10de18638ce6f9ec7c47082999
2012-01-08 12:32:09 +00:00
mistachkin
0547e2ff7b
Fix harmless compiler warning seen with MSVC.
...
FossilOrigin-Name: 9612bcd648c7654050ddb2f955a28cbc527a8c2e
2012-01-08 00:54:02 +00:00
drh
7dd1ac600e
Fix a bug in lemon in computation of which non-terminals can generate an
...
empty string. This bug and the fix make absolutely no difference for the
grammar used by SQLite, but it can make a difference when lemon is used
in other grammars.
FossilOrigin-Name: ce32775b232da894343f62deefaf19b0ec484636
2012-01-07 15:17:18 +00:00
drh
60e4a74879
Add missing finish_test to the end of the zerodamage.test module. Disable
...
the zerodamage module if virtual tables are omitted from the build.
FossilOrigin-Name: d2a5685b5e282488df382fc210e4f0d786259658
2012-01-06 13:58:04 +00:00
drh
c91663499e
Combine various boolean variables in the BtShared structure into a single
...
boolean vector. Also make performance improvement simplifications to
sqlite3BtreeMovetoUnpacked().
FossilOrigin-Name: 119493318e0ad4c2858fe1484b0d71669bd81531
2012-01-05 23:32:06 +00:00
drh
9cb5a0d989
Make sure the name of the shared memory file has two zero-terminators in the
...
UNIX VFS, so that sqlite3_uri_parameter() will work correctly on that name.
FossilOrigin-Name: 3d088ba5e36c0b6bccc86986f8fa9a22b340c297
2012-01-05 21:19:54 +00:00
drh
e025d9a096
Fix an incorrect assert() on the sqlite3FileSuffix3() function.
...
FossilOrigin-Name: 24db54bd49ed91c74a9797faca02df2d39553240
2012-01-05 18:33:40 +00:00
drh
e349519f1e
Change the unix VFS so that it ignores all but the least-significant bit
...
of the syncDir flag to xDelete. Add an assert to prove that the core only
ever uses that one bit.
FossilOrigin-Name: e75fd3b27423272b988921ac0e272f9600818b8c
2012-01-05 16:07:30 +00:00
drh
e0711b47b1
Ensure 8-byte alignment of Index.aiRowEst[] elements even if the size of
...
an Index object is not a multiple of 8 bytes.
FossilOrigin-Name: 1378f905d37544701776d38987fe7a312b255983
2012-01-05 12:38:02 +00:00
drh
bce51350d6
Remove the SQLITE_FCNTL_SYNC_OMITTED cases from the unix and windows VFSes
...
as they are no longer needed because of check-in [fd3822f1f2].
FossilOrigin-Name: 7cf568a101cda20ab6005bd250154b7f6960193a
2012-01-05 11:43:10 +00:00
drh
e4c88c0c38
Fix typos and comments and make minor changes to a few function names,
...
as suggested by readership.
FossilOrigin-Name: e9d05cbb7676cbda83f1b3b71447404d7edde898
2012-01-04 12:57:45 +00:00
drh
52bcde0e2d
Make sure filenames passed into sqlite3OsOpen() always have the extra
...
zero-terminators needed by sqlite3_uri_parameter().
FossilOrigin-Name: d73e93cfdc9441ade77b796dcdcf6eeb753cb398
2012-01-03 14:50:45 +00:00
drh
8942d4125e
Remove the code that attempts to find the sector size from the OS and
...
hardcode the xSectorSize methods of the unix and windows VFSes to return
SQLITE_DEFAULT_SECTOR_SIZE, which is now set to 4096 unless overridden.
FossilOrigin-Name: 03d8362cd2cadab8e1cc5b18a3194152f2bd0a84
2012-01-02 18:20:14 +00:00
drh
a69085cf5f
Change page quantities in pcache1.c to unsigned.
...
FossilOrigin-Name: da52e6e8b490508bc1ee4700aa45a79f398363da
2012-01-02 18:00:55 +00:00
drh
2f32fbae31
Remove an incorrect assert() in btree.c.
...
FossilOrigin-Name: c1691d998a03fee3bef137ccf2e8ca45acac2df4
2012-01-02 16:38:57 +00:00
drh
5dc2bcda7e
Make sure large negative arguments to PRAGMA cache_size do not cause
...
32-bit signed integer overflow. Also correct a requirements mark.
FossilOrigin-Name: 17c30634a71051158f8d37fd51b3c2a125ad8bd2
2012-01-02 15:45:12 +00:00
dan
aa584af088
Have SQLITE_FCNTL_SYNC_OMITTED use the normal method of returning an error code.
...
FossilOrigin-Name: fd3822f1f2e6ea181f663e99bfe788d8404176ee
2012-01-02 14:50:12 +00:00
drh
7d39e17eef
Fix the build so that it works when SQLITE_ENABLE_8_3_NAMES=1.
...
FossilOrigin-Name: d9761f15a175724c6c28a52335c979304737b188
2012-01-02 12:41:53 +00:00
drh
20e226d979
Tweaks to improve testability.
...
FossilOrigin-Name: e3a929e43180f41095cc2cd00c6b0781856a4474
2012-01-01 13:58:53 +00:00
drh
b8a45bbdb8
Fix typos in comments. No changes to code.
...
FossilOrigin-Name: 6827338ecbe43e28da88d919851ebffde9f6d398
2011-12-31 21:51:55 +00:00
dan
23a3de398e
Add calls to the BenignMalloc() functions around the SQLITE_FCNTL_OVERWRITE call in backup.c.
...
FossilOrigin-Name: 3e0833dbb736a1aca08d17941d6d33901b15a03b
2011-12-31 10:18:00 +00:00
dan
b3ce3d6d92
Add calls to the BenignMalloc() functions around the SQLITE_FCNTL_SIZE_HINT call in pager.c.
...
FossilOrigin-Name: c17a3f5e5d72187c06b598ef071d43ef89328e19
2011-12-30 18:16:02 +00:00
drh
50cc5c2789
Fix a typo in the documentation for PCACHE2. No changes to code.
...
FossilOrigin-Name: 46e7903ab993b08251c87239bd4a7320e6781cee
2011-12-30 16:16:56 +00:00
dan
4373bb880c
Change dbstatus.test to account for the fact that the value reported by DBSTATUS_SCHEMA_USED may be slightly lower than the actual memory used on osx
...
FossilOrigin-Name: 6f2010c862105a113b55e90018b86a9ece298d4d
2011-12-30 16:09:50 +00:00
drh
f4692ccc79
Fix up requirements marks for syntax diagrams to reflect the new and improved
...
GIF renderings.
FossilOrigin-Name: 1bb23a3b5297e07e08c26362f71aef0c5b978875
2011-12-30 16:07:37 +00:00
drh
2faf5f5e9e
Update the text of requirements associated with sqlite3_pcache_methods2.
...
Update requirements marks embedded in code. All of the above are comment
changes only; there are no changes to code in this check-in.
FossilOrigin-Name: f945c41a72519d6bcfb478730ba0254bb24e5331
2011-12-30 15:17:47 +00:00
dan
d9bb3a9749
Hold the database handle mutex for the duration of sqlite3_db_release_memory().
...
FossilOrigin-Name: eeaf2988004ff5343be60ab4ba2f809f76c94b51
2011-12-30 11:43:59 +00:00
dan
0420b74a94
Minor changes to fix compilation with SQLITE_OMIT_WAL and SQLITE_OMIT_WSD defined.
...
FossilOrigin-Name: 26a513a8d2dddfde82f5fd0a0e1cc186c9b0df94
2011-12-30 10:54:24 +00:00
dan
0e208252c9
Change an implicit i64-to-int cast in pager.c to an explicit cast.
...
FossilOrigin-Name: 6a71ba9ce930838d44ed8d399075ba0723c9132b
2011-12-30 09:00:19 +00:00
dan
44659c9417
Fix some typos in comments. No code changes.
...
FossilOrigin-Name: 4edc5994b26e1fd3245572cb80242d07ba20a475
2011-12-30 05:08:41 +00:00
drh
4eaff93e4b
Documentation updates. No changes to code.
...
FossilOrigin-Name: a8a1a639fe441a533b11ada7368b2200edea7a05
2011-12-23 20:49:26 +00:00
drh
4e5e108e83
Avoid excess syncs when padding a transaction in a WAL.
...
FossilOrigin-Name: 1f24ae716df6232de768e245ea990049deee3c22
2011-12-23 13:32:07 +00:00
drh
cc8d10a0fd
Merge the POWERSAFE_OVERWRITE features and the use of statvfs() from the
...
statvfs branch into trunk.
FossilOrigin-Name: 2370d70eb51d2259aaa8073d861ab79d6637cbd9
2011-12-23 02:07:10 +00:00
drh
cb15f35f3b
Change the name ZERO_DAMAGE to the more descriptive POWERSAFE_OVERWRITE.
...
The query parameter used to control this device characteristic is now "psow".
FossilOrigin-Name: 6191c5e45175f5c6040e891843b0725a929d6dd7
2011-12-23 01:04:17 +00:00
drh
bec7c97899
Merge the latest trunk changes into the statvfs branch.
...
FossilOrigin-Name: d5e36327c12f264429eb079bddbb71a310f76389
2011-12-23 00:25:02 +00:00
drh
9291372094
Add interfaces sqlite3_uri_boolean() and sqlite3_uri_int64() which are
...
wrappers around sqlite3_uri_parameter() combined with internal routines for
converting strings to booleans and 64-bit integers.
FossilOrigin-Name: 83d26b9a9115eadac9e59a33d608bca0ab2519e3
2011-12-23 00:07:33 +00:00
drh
64803bd2fa
Fix minor issues with FTS and RTREE discovered by coverity.
...
FossilOrigin-Name: 1c27d842163e27c39bbe9409f50657b9de9ade6e
2011-12-22 17:31:17 +00:00
drh
de0f18154e
Check the return code from sqlite3_initialize() called from within
...
sqlite3_soft_heap_limit64() and return an error from sqlite3_soft_heap_limit64()
if sqlite3_initialize() fails.
FossilOrigin-Name: 676acce274fec692a1eb34d27ee4b1327b4b3334
2011-12-22 17:10:35 +00:00
dan
0c8cda6e0d
Fix a problem in fts3_write.c causing stack memory to be referenced after it is out of scope.
...
FossilOrigin-Name: f9c4a7c8f4e5821b47c1393d6272e32416d8886c
2011-12-22 15:30:46 +00:00
drh
3a7df358ab
Merge recent trunk changes into the statvfs branch.
...
FossilOrigin-Name: 995ec8a41a7d091d9d87cb8f18f62102c8fda7d7
2011-12-22 02:10:57 +00:00
drh
3b5b351b65
Remove a redundant assignment operator.
...
FossilOrigin-Name: 19a6852a1e5905b35bc69b309951c5ec8ecd0bef
2011-12-22 01:46:04 +00:00
dan
7c3210e641
Fix other problems where 32-bit integer overflow may cause a problem. Two that require an improbably large sub-journal and two in test harness code.
...
FossilOrigin-Name: c723e3e18a008922281d8d6e8e3aba07941eb173
2011-12-21 18:04:41 +00:00
dan
27d47fbe6e
Avoid 32-bit overflow when calculating the byte offset of an overflow page in SQLITE_DIRECT_OVERFLOW_READ code. Fix for [ac0ff496b7].
...
FossilOrigin-Name: c5256b59ad70104c1e181b9f49d1d712cf4cc9f6
2011-12-21 17:00:16 +00:00
drh
f12b3f609f
Add the ability to enable or disable SQLITE_IOCAP_ZERO_DAMAGE using a URI
...
parameter for both unix and windows. Add a file-control to query or disable
the ZERO_DAMAGE setting. Add the -uri option to the "sqlite3" TCL command
in tclsqlite3.c. Allow the sqlite3_uri_parameter() interface to accept a
NULL pointer for its first parameter.
FossilOrigin-Name: c83627b73285f883719845c1b9fe85f378f28dd2
2011-12-21 14:42:29 +00:00
drh
f694aa6454
Remove the code that tries to detect OOO header writes on a WAL recovery.
...
The code is made obsolete by syncing the WAL header.
FossilOrigin-Name: 7ac713a14e24c48651c2a97acc9839850fa7f3c3
2011-12-20 22:18:51 +00:00
drh
d992b150c7
Refactor the sqlite3WalFrames() routine for clarity of presentation.
...
Do the padded transaction sync as the write pointer crosses the final
sector boundary instead of at the end, for efficiency. Always sync
the WAL header immediately after it is written.
FossilOrigin-Name: 92c73b421b6242b09247dfb759777a531a107523
2011-12-20 20:13:25 +00:00
drh
4120994fdf
Assert that the isCommit parameter to sqlite3WalFrames() is zero if and
...
only if the nTruncate parameter is zero.
FossilOrigin-Name: 979daf92e09305665d943e197b93b81139197c5b
2011-12-20 13:13:09 +00:00
dan
19969d96ce
Add test for WAL mode to unixexcl.test.
...
FossilOrigin-Name: 4d518bd4801c31bb1e4fb0329ad057e549035237
2011-12-19 15:46:51 +00:00
dan
3604d7c687
Merge [21b76af6ed] into statvfs branch.
...
FossilOrigin-Name: e694f7b166144a0afba7846e1e18ad568b33a081
2011-12-19 11:57:41 +00:00
dan
7f9026dd94
Fix a couple of test cases to account for the master-journal name related change in [cf3bccc2].
...
FossilOrigin-Name: 21b76af6edd48f665cdd3af5f99d477f030c7668
2011-12-19 11:16:39 +00:00
dan
0774bb59c6
Modify test cases to account for the ZERO_DAMAGE change.
...
FossilOrigin-Name: 68684495f1a62a41ad27934f3a6d3bc9d290a57d
2011-12-19 10:07:56 +00:00
drh
1eaaf93a83
Some fixes to the test suite so that it works with ZERO_DAMAGE set to true.
...
Still lots more problems remain.
FossilOrigin-Name: 41891b231e20a1d32b1d7449e7863470eb38ca0a
2011-12-19 00:31:09 +00:00
drh
374f4a0447
For improved clarity of presentation,
...
refactor some of the code associated with ZERO_DAMAGE and sector-size.
FossilOrigin-Name: 1dde96c9ee88af1c4e37c2e65acb7c0fe6a20e2a
2011-12-17 20:02:11 +00:00
drh
8bbaa89d8d
Add SQLITE_IOCAP_ZERO_DAMAGE and enable it for both unix and windows. Use
...
this device characteristic to reduce the required work in journaling.
A side effect is that this changes the default page exists back to 1024
even with the use of statvfs().
FossilOrigin-Name: a0be6ea464695fdf1eaf2b7cf0652778617814f2
2011-12-17 19:49:02 +00:00
drh
9c0e29371e
Fix a bad #endif with the previous check-in on this branch.
...
FossilOrigin-Name: 915713ffe4d02ddf1d09a82e39a47b88d3d95ea0
2011-12-17 16:25:17 +00:00
drh
1da88f025f
Add support for statvfs() in os_unix.c, for determining the sector size.
...
This causes many TCL test failures under Linux.
FossilOrigin-Name: e0d44450b9bec8ea7b057c1ad0a2088cd3f1f221
2011-12-17 16:09:16 +00:00
drh
fe6163d7cf
Merge in changes that cause the first sector of the WAL file to be synced
...
when the WAL restarts. This is a fix for the power-loss corruption
problem described in ticket [ff5be73dee086]
FossilOrigin-Name: 44ca4d123385d759c11919865525c998c2e35bdb
2011-12-17 13:45:28 +00:00
dan
533100d3a3
Add tests to walcrash3.test.
...
FossilOrigin-Name: d76880428013ae2c5be00d87bb3e1695af6f706f
2011-12-17 08:10:34 +00:00
drh
d2980310d0
Make sure the Salt-1 value in the WAL file is sequentially numbered at
...
each checkpoint, as it says it should be in the documentation.
FossilOrigin-Name: 7b63b11b93396079131686abb36c4221354fa50e
2011-12-17 01:31:44 +00:00
drh
4eb02a4556
Enhance the WAL header sync so that it honors the various synchronous
...
pragmas, settings, and device characteristics.
FossilOrigin-Name: 9799241f7de952c4d1ea8bf6508b577d2b57a370
2011-12-16 21:26:26 +00:00
drh
88f975a7a4
Proposed changes that ensure that the WAL header is written prior to the
...
first commit mark.
FossilOrigin-Name: 91d0437c0702904d27f0ef7b1b52d0797efe1826
2011-12-16 19:34:36 +00:00
dan
e98842f02d
Add code for a test that was failing before the persistent-wal related changes of [9ccc4a1be].
...
FossilOrigin-Name: 49d21ce50fcf535e470d284ccbb9eb4d4bcfa3a6
2011-12-16 17:01:04 +00:00
drh
eed4250598
Merge the fix for [a1fa75cbdd02] from the experimental branch. Also
...
fix the persistent-wal mode feature of truncating the WAL on close so that
it always truncates the WAL to zero bytes.
FossilOrigin-Name: 09ccc4a1be7ba81890f10aac6623dd90dab4f990
2011-12-16 15:38:52 +00:00
drh
84968c051d
Improved logging of master-journal name conflicts.
...
FossilOrigin-Name: b1005ef46cc2b46dd8e448ae1a9a9508bd5666ab
2011-12-16 15:11:39 +00:00
drh
b654ee20fe
Merge the nx-devkit changes into trunk.
...
FossilOrigin-Name: cf3bccc2e944cd2dd3efb8554682994a06115f16
2011-12-16 13:42:03 +00:00
dan
f60b7f36c1
Experimental fix for [a1fa75cbdd].
...
FossilOrigin-Name: 6492af76ea6585a1b377d69751af930c0ccfe688
2011-12-16 13:24:27 +00:00
drh
8c24a369a5
Tweaks to the way multiplexSubOpen() works, for backwards compatibility.
...
FossilOrigin-Name: bb40338887c912be70cb6fe3b760d87c14bb88a5
2011-12-16 05:50:39 +00:00
drh
0699966798
Fix a potential infinite loop (inserted by the previous check-in)
...
on the multiplexWrite() method of the multiplexor.
FossilOrigin-Name: 022bf427c2edfe494ec7c222f436953ff56574a6
2011-12-16 05:09:46 +00:00
drh
e7d9f13d99
The xTruncate method for the multiplexor now changes surplus overflow
...
files to zero-length by default. Or if the "truncate" query parameter
is used, it actually deletes the surplus overflow files. This allows
VACUUM to shrink the database again.
FossilOrigin-Name: 5aefef04d6cc3b734c3f05e036b3869a52248f4d
2011-12-16 04:57:32 +00:00
drh
38deeb9763
Call sqlite3_log() with an appropriate message if unable to find a unique
...
master-journal filename.
FossilOrigin-Name: e9177f7d4ec19f0841d0613990d2fb5725700ba1
2011-12-16 01:30:15 +00:00
drh
5c531a4aab
A better solution to being unable to find a unique master-journal filename:
...
just delete an existing master-journal and reuse it.
FossilOrigin-Name: 2685c2b949061f18bf6a4940eac8c8148873abb6
2011-12-16 01:21:31 +00:00
drh
f580860f51
Make sure the antipenultimate character of master-journal filenames is a "9"
...
in order to avoid collisions with other files in 8+3 filename mode. Also,
limit the number of attempts at finding a unique master-journal filename.
FossilOrigin-Name: 34a0483605d36e6cf03065ed0df33fb1f7c8a272
2011-12-16 00:33:04 +00:00
drh
14ec1ffecf
Add stdio support to the quota VFS.
...
FossilOrigin-Name: 322bd15f97143d39b3a88d5f6cf7afb454e0666e
2011-12-15 17:44:33 +00:00
drh
c39f3e0085
Use _commit() rather than FlushFileBuffers() as a substitute for fsync()
...
on windows. Also cast for C++ and add support for SQLITE_FCNTL_VFSNAME.
FossilOrigin-Name: e85cfe9a17a2943ee0cf7915451ff6cc05908030
2011-12-15 17:42:35 +00:00
dan
e712b5823e
When deleting a file with the multiplexor VFS, also delete any overflow files that exist.
...
FossilOrigin-Name: 3af1feaa35d3fb2e7be550cd32a727001b874938
2011-12-15 17:00:10 +00:00
drh
78c0eafb35
Make sure the chunksize in test_multiplex does not cause the pending byte
...
to fall near the end of a chunk. Adjust the chunksize upward as necessary
to prevent this.
FossilOrigin-Name: e05f8a2998f4f4cbdb65702baa65893c538b3d38
2011-12-15 13:29:12 +00:00
dan
31b21295b0
Fix some problems with dropped error codes in multiplexOpen().
...
FossilOrigin-Name: 2d50f78188e3297e8cefdf73cff51fa0a3b36e65
2011-12-15 11:45:19 +00:00
drh
2be25bffca
In the multiplexor, do not try to delete overflow files that do not exist.
...
And assume all but the last overflow file is the size of the chunk size.
FossilOrigin-Name: a822a80d3cfe42b2fca6f8c9ff11762993114a27
2011-12-15 02:22:16 +00:00
drh
a60ef3d570
Merge the nx-devkit changes into trunk. This includes the new
...
SQLITE_FCNTL_VFSNAME file-control.
FossilOrigin-Name: da118e02c0576ce16f7a26663f59413316223d55
2011-12-14 18:33:13 +00:00
drh
0f2ab8db33
Merge the VFSNAME file-control addition into the nx-devkit branch.
...
FossilOrigin-Name: 08c1dc517c1340737a55ad9012b7b06f72899c6f
2011-12-14 18:28:18 +00:00
drh
de60fc2d87
Add a file-control that will discover the name of the bottom-level VFS and
...
all the shims in between.
FossilOrigin-Name: cdbfb553af02d10767a905489d9dfc57fc6be54e
2011-12-14 17:53:36 +00:00
drh
43a6d4bd44
Improvements to comments. No code changes.
...
FossilOrigin-Name: 08bbbd8e38697908ab8ae0f6b512d01c32f7e4da
2011-12-14 01:38:12 +00:00
mistachkin
6ca514b075
Treat a zero return value from the Win32 APIs MultiByteToWideChar and WideCharToMultiByte as an error condition.
...
FossilOrigin-Name: c65e5a36f1a1c91cb3415158ebe0f5759cbcdf96
2011-12-14 00:37:45 +00:00
drh
49ed5c8562
Harden the utf8-to-mbcs converter in the quota module against failures.
...
FossilOrigin-Name: 1cda511deb625868395a23c95346e14d0c300670
2011-12-14 00:04:52 +00:00
drh
27cec37d8e
Enhancements to test_quota.c: Remove the external dependency on
...
sqlite3_win32_utf8_to_msbc(). Add an extra parameter to quota_fflush()
that will also do an fsync (or the equivalent).
FossilOrigin-Name: 92f4188f90e3cdd71f1457a6e0eb22615e4a54f4
2011-12-13 23:26:10 +00:00
dan
27e69643cf
Add a hard limit to the number of chunks a multiplexed database may consist of if ENABLE_8_3_NAMES is defined.
...
FossilOrigin-Name: 43a1264088c57bf598787b7a9f5d7a2536603d67
2011-12-13 19:03:34 +00:00
drh
c7f946297a
Change the SQLITE_EXTRA_INIT routine to take a single argument which is a
...
pointer to a string. Call SQLITE_EXTRA_INIT with a NULL argument.
Fixes to multiplexor to treat the VFS properly in corner cases. Fix the
initialization of multiplex3.test.
FossilOrigin-Name: 8e65b9132530e46c62bd1352bfc2e9c29f57af5f
2011-12-13 18:22:38 +00:00
dan
add995cc25
Add extra tests for the multiplexor VFS. No changes to code.
...
FossilOrigin-Name: c7de6f683d0fec62bc138b4a53b5cccc80c736c3
2011-12-13 16:40:33 +00:00
drh
1cdf011da3
Merge the nx-devkit changes into trunk.
...
FossilOrigin-Name: 03a70c3dae8d912fccd9d72c575dc372b198d238
2011-12-13 15:37:12 +00:00
drh
658dd586ed
Update the multiplex.test script to conform to that found in the "experimental"
...
branch off of trunk.
FossilOrigin-Name: 2eb79efbff9cdab843b172e9fa9fb400c542fab1
2011-12-13 15:25:06 +00:00
drh
5b1626aa47
Move the multiplexor changes in the experimental branch
...
(check-ins [255d21499b] and [199f52bced]) into the nx-devkit branch.
FossilOrigin-Name: eb95d2f72c625bcfd0f8e9db1db2cb8799854b57
2011-12-13 15:02:54 +00:00
drh
e5077c1211
When an sqlite3_auto_extension() function fails, report back its actual
...
error code, not the generic SQLITE_ERROR.
FossilOrigin-Name: ce55f250f56fa3a1ca864f81e9e86f911b981490
2011-12-13 04:08:36 +00:00
drh
43795e3b0b
When the multiplexor FileSize procedure fails to open the file, assume that
...
the file is zero bytes in size.
FossilOrigin-Name: dc8118cd89da71f2035c6ee07c0edb772bba2186
2011-12-13 02:41:13 +00:00
drh
9797706c04
Add a compile-time shutdown procedure to be called by sqlite3_shutdown()
...
to undo the effects of the compile-time initialization procedure.
FossilOrigin-Name: c2ed86f5945662a4ddcdc7b303df3f64fb3bf17d
2011-12-13 01:34:21 +00:00
drh
73795becfe
Backport a minimal set of changes needed to get 8+3 filenames and the
...
multiplexor shim playing well together.
FossilOrigin-Name: c4e2ce486217c96373836bfe641f46abf891799a
2011-12-12 20:01:12 +00:00
dan
28a67fd3f8
Fix os_unix.c so that, unless 8.3 filenames are actually in use, journal and wal file permissions are assigned correctly even if SQLITE_ENABLE_8_3_NAMES is defined.
...
FossilOrigin-Name: 169e12295cca701443746b1209bd6a7714fd8988
2011-12-12 19:48:43 +00:00
drh
663cebfeae
Make sure the quota logic is usable as C++.
...
FossilOrigin-Name: f4534bd3023a599691018f35389a76045e49d831
2011-12-12 19:47:25 +00:00
dan
694592b247
Change the multiplexor VFS so that xTruncate is a no-op on database files.
...
FossilOrigin-Name: ee1e012256ae8010b6b6c4895a74b6883f20e73c
2011-12-12 18:55:44 +00:00
dan
dc8ac1dd76
Fix for the xFileSize method of test_multiplex.c when used on a file opened with the DELETEONCLOSE flag set.
...
FossilOrigin-Name: 713071c493e9937a20c436b07299df428249e378
2011-12-12 18:21:44 +00:00
drh
743e003c0e
Add magic comments to shell.c to make it easier for scripts to
...
insert additional version information displays for custom builds.
FossilOrigin-Name: 9b2691aa911289d74bfe3edf45937a33fb7eaa8d
2011-12-12 16:51:50 +00:00
drh
58cd3c6162
In the multiplexor shim, when using 8+3 filenames, begin numbering journal
...
overflow files with 101 instead of 001 to avoid name collisions with the
main database file.
FossilOrigin-Name: 05bf8a0b17a13a581ac973dc84ceaf66532d7f92
2011-12-11 22:44:09 +00:00
drh
630d296c57
Update comments describing the flattening optimization in select.c.
...
FossilOrigin-Name: dab4c137a852222f11179fa2ade52d17a4206dd2
2011-12-11 21:51:04 +00:00
drh
e752cda894
Fix STAT3 so that it works with the new uninitialized register logic of
...
the VDBE. Ticket [7bbfb7d4422ff]
FossilOrigin-Name: d11a57985c394772043c63d4c2b534944be0a664
2011-12-11 02:30:35 +00:00
drh
13e0ea9923
Fix harmless compiler warnings.
...
FossilOrigin-Name: 1e6a698aab9270637d3ea00fd6b0e94f4172e875
2011-12-11 02:29:25 +00:00
drh
4b3ac73c2f
Minor cleanups of the compound-subquery flattening logic. New test cases
...
added for joins the compound subquery.
FossilOrigin-Name: 5061d85ff934db3c217c97acbbbed3286d9e02aa
2011-12-10 23:18:32 +00:00
drh
1acc6cbe00
Allow UNION ALL compounds to be promoted up to replace a simple wrapper
...
SELECT even if the compounds are joins.
FossilOrigin-Name: 3d4b4f4fb7c1d9f1c742fef884383e9f50f8630e
2011-12-10 17:17:17 +00:00
drh
678a9aa7bd
Import the experimental parse-tree explainer, with fixes, from the
...
tree-explain branch.
FossilOrigin-Name: bcbc7152d49107afa926c8950360c61a6cf3d244
2011-12-10 15:55:01 +00:00
drh
a5eec8c8c3
Merge the latest trunk changes into tree-explain branch.
...
FossilOrigin-Name: 1a360da0f8314f232c224c71829646bc7558892b
2011-12-10 14:44:31 +00:00
drh
3a0c9c0298
Always use _msize() to get memory allocation sizes on windows, without having
...
to do anything special in the makefile.
FossilOrigin-Name: 256e27bd118ed3ab6ecb19ad6a6494b71ac9bdd5
2011-12-10 13:49:44 +00:00
drh
6e856bc0cc
Change the VDBE so that all registers are initialized to "Invalid" instead of
...
NULL and report errors on any attempted read of an Invalid register. This
will help prevent future bugs similar to [7bbfb7d442].
FossilOrigin-Name: 0064bab77149768640d7758a3e271d5a1d63b256
2011-12-09 18:06:44 +00:00
drh
6113450857
Remove an unnecessary condition.
...
FossilOrigin-Name: d9ba023c608bce7768bc08478f9df9243f2e73ce
2011-12-09 17:51:30 +00:00
drh
7fd3c07465
Remove an unnecessary initialization of Vdbe.aOnceFlag.
...
FossilOrigin-Name: 421714dad32f3460fa40a7f65e9fa276f5e37f58
2011-12-09 17:38:23 +00:00
drh
ec86c724ac
Take out the OP_JumpOnce opcode. Revert compound SELECT to use OP_IfNot,
...
which is the correct behavior. Mark trigger registers as initially
invalid.
FossilOrigin-Name: 6a9fb47d5060fe641915f5f99cc9265409a4583b
2011-12-09 17:27:51 +00:00
drh
f4d31bcb05
Previous check-in broke auto-increment. This check-in appears to fix it.
...
FossilOrigin-Name: 28ffd39c7162c8f7139711545122cffa257911dd
2011-12-09 16:59:19 +00:00
drh
b8475df809
Make no assumptions about the initial state of VDBE registers.
...
FossilOrigin-Name: 521d72bdf67b4b1972331307345a18c231a6e1d6
2011-12-09 16:21:19 +00:00
dan
1d8cb21fdb
Modify the OP_Once opcode so that it works correctly in trigger sub-programs. This is a candidate fix for [7bbfb7d442].
...
FossilOrigin-Name: 557c69055a300b4082830b5f4803091dca1c3140
2011-12-09 13:24:16 +00:00
mistachkin
254582f4c2
The Windows OS flavor #ifdefs must be performed after the 'windows.h' file has been included.
...
FossilOrigin-Name: 3702a31e56fe02d14ce246109b318a124cad9f1a
2011-12-09 05:52:16 +00:00
drh
f1c5726ef1
Hand merge the zone allocator for MacOS from the apple-osx branch.
...
FossilOrigin-Name: 0d955c20c02da29582b5cd8df2b7124fb9d12ebb
2011-12-08 20:41:33 +00:00
drh
8dd4afadd8
In persistent WAL mode, truncate the WAL file to the size specified by the
...
journal_size_limit pragma when disconnecting from the WAL.
FossilOrigin-Name: 9687b305c2320109a8649612181eecd2e0da7c7b
2011-12-08 19:50:32 +00:00
mistachkin
c4eef45c14
Follow the previously established pattern for detecting preprocessor defines for specific flavors of Windows (for NT in this case).
...
FossilOrigin-Name: a0d92193dd5ae97608748f354aa17eb188431546
2011-12-08 03:51:12 +00:00
drh
4e2a9c3272
Additional detail added to the tree-explain output for SELECT statements.
...
FossilOrigin-Name: 7b457ea4551ba411a4747d74fb78b795cc8d9ee6
2011-12-07 22:49:42 +00:00
drh
04b8342b83
More compact notation for the parse-tree view.
...
FossilOrigin-Name: 0eb3f8b1e3a196811fb54a5e2645debe6119610a
2011-12-07 15:33:14 +00:00