drh
8c5058bbdb
Fix a bug in the command-line shell logic that attempts to continue with a
...
".dump" even after encountering database corruption.
FossilOrigin-Name: 020b5e90f950a42299074ff770612b9e68850d95
2012-04-16 17:22:30 +00:00
drh
5adc60bab0
In the unix VFS, always set every open file to close-on-exec using either
...
O_CLOEXEC at open (preferred) or FD_CLOEXEC in an ioctl after opening. Before
this changes, many files were done this way, but not all.
FossilOrigin-Name: 9efbeb11ae0d480a13ff1353820c12f3a8bff452
2012-04-14 13:25:11 +00:00
drh
2b32b9941d
Fix a typo in a comment that is extracted for documentation. No changes to
...
code.
FossilOrigin-Name: e87371c5081ce28431a4c7ceaa81ff966a378c66
2012-04-14 11:48:25 +00:00
drh
a2acb0d769
Add a testcase() macro to ensure that the sqlite3AuthCheck() call inside
...
the query flattener really is effective.
FossilOrigin-Name: a134e6e739cbb27701b092b33033244feb164cdf
2012-04-11 23:22:37 +00:00
drh
85e7243acf
Fix harmless static-analysis warnings, mosting having to do with memory
...
leaks in the command-line shell. Add a clang analysis of the command-line
shell to the "warnings-clang.sh" script. Other minor cleanups to the
command-line shell code.
FossilOrigin-Name: 93a0f452a7023898ad3d62ee81b39a80477c332f
2012-04-11 11:38:53 +00:00
drh
c00ce490c5
Add new interfaces to the test_quota.c module: sqlite3_quota_ftruncate(),
...
sqlite3_quota_file_size(), sqlite3_quota_file_truesize(), and
sqlite3_quota_file_mtime().
FossilOrigin-Name: 2fa9f54309aea9927fb3695a986febd4963df7d1
2012-04-10 17:53:47 +00:00
drh
35c86a94cf
Fix a copy/paste error in a comment in the fuzzer. No changes to code.
...
FossilOrigin-Name: 7433f2b5508ebf09d0e3e32a995f1126eaab8999
2012-04-10 16:05:27 +00:00
drh
89d5d6a2a7
Fix the application-defined function logic so that functions with a variable
...
number of parameters can be replaced or deleted correctly. Also refactor
some of the function-finder code for clarity of presentation.
FossilOrigin-Name: 09d5581c81fb6a9bf6a369d0abf5ef6b54637576
2012-04-07 00:09:21 +00:00
drh
370026242a
Update sqlite3_analyzer to correctly find all database files when the
...
multiplexor is being used.
FossilOrigin-Name: 1bfc30cb0fdc4b9def989eea2d78f6ac851633fa
2012-04-06 00:09:27 +00:00
drh
b8af4b7919
Ignore the value of SQLITE_FCNTL_CHUNK_SIZE if it is negative.
...
FossilOrigin-Name: 1b08fef9451f4d59148548faed115d1a5d0bcd98
2012-04-05 20:04:39 +00:00
drh
3343b43915
Performance improvements for the RowSet object when it undergoes many
...
cycles between RowSetInsert and RowSetTest.
FossilOrigin-Name: 49d20ede5f4c0895a165126d5cf7c95a0510ba35
2012-04-05 01:37:32 +00:00
drh
42f64e52ee
Add the ".trace" option to the command-line shell.
...
FossilOrigin-Name: b9ac3d7e340eb616fd23cc7dbdef6fdd66a79fe4
2012-04-04 16:56:23 +00:00
drh
689453dbf0
Fix the multiplexor logging so that it works with SQLITE_ENABLE_8_3_NAMES.
...
FossilOrigin-Name: 9e1e2fe2950bb96784413eae934314d95bce08e7
2012-04-04 13:58:19 +00:00
drh
1779efd483
In the multiplexor extension, improve the error logging when a chunk fails
...
to open.
FossilOrigin-Name: 781453c686656a7bd4a274a3b3204ceb6ecae8df
2012-04-04 13:43:13 +00:00
dan
c8f8616c41
Do not run attempt to run test file fts4merge3.test unless the build includes FTS.
...
FossilOrigin-Name: 0506bf86d31e821a905e3a8a03c4817e326f7f44
2012-04-03 18:34:24 +00:00
dan
2bd2cfc2b5
Modify capi3.test and capi3c.test so that they work with SQLITE_OMIT_AUTORESET builds.
...
FossilOrigin-Name: 1d5e744cc645150ccaa7256663146fc7b8540bd5
2012-04-03 18:33:43 +00:00
dan
1235bb1815
Modify the integrity-check code to reduce the size of the large allocation from 4 bytes to 1 bit for each page in the database file.
...
FossilOrigin-Name: fa3a498dfe9ed59c30da5eaa0d7cad167fd4e393
2012-04-03 17:43:28 +00:00
drh
2aad3da6ea
Fix a typo in the rtree6.test script that prevented it from running.
...
FossilOrigin-Name: 221fe4a8ea5bea90031e459746ea71ff173e6f52
2012-04-03 17:05:16 +00:00
drh
67d97343a3
Rerun autoconf to update the configure script for version 3.7.12
...
FossilOrigin-Name: 6d73eb20e825f51143a1b59ad33f44e6448ef760
2012-04-03 17:01:36 +00:00
drh
5d4e1e1a50
If the SELECT that finds all root pages in the showdb fails, then report
...
an error.
FossilOrigin-Name: 4b16141501655faa23e7d34ad05570ea929abb7c
2012-04-03 15:10:34 +00:00
drh
3aeea46397
Enhance the "showdb" utility program with the "pgidx" option. Now requires
...
linkage with the amalgamation.
FossilOrigin-Name: 4b5737014c6f1638de9dc162463508ea7dfe333d
2012-04-03 14:59:50 +00:00
drh
f439fbdab5
The SQLITE_RTREE_INT_ONLY compile-time option causes the RTree extension
...
to use only integer math and store only integer coordinates.
FossilOrigin-Name: 02b7640f5118e0a635b68f65765191bb3171b7bd
2012-04-02 21:35:42 +00:00
drh
3b06a2a056
Add #ifdefs to allow a test build to succeed even if SQLITE_ENABLE_FTS3 is
...
not defined.
FossilOrigin-Name: fb121980e48af368353431fd04924e414b65c852
2012-04-02 17:18:23 +00:00
drh
a477a8670f
Fix a compiler warning by removing a redundant variable.
...
FossilOrigin-Name: af602d87736b52802a4e760ffeeaa28112b99d9a
2012-03-31 19:12:23 +00:00
drh
e77593fc50
Test cases for RELEASE and ROLLBACK TO of a nested savepoint while queries
...
are pending.
FossilOrigin-Name: d2bf0efa7da59448a62f5be795403be4e5b7fb7f
2012-03-31 17:50:12 +00:00
drh
31f100556c
Do not abort pending queries on a RELEASE of a nested SAVEPOINT.
...
This is a candidate fix for ticket [27ca74af3c083f787].
FossilOrigin-Name: 79a4a3a84f0b367d54da5e69e64ffca474264717
2012-03-31 17:17:26 +00:00
dan
8c2e0f02ba
Modify selectColumnsFromExprList() to avoid ever incorrectly returning SQLITE_NOMEM.
...
FossilOrigin-Name: e7cb6b73ac079d0751b3f9429d0f6a35ca8ec853
2012-03-31 15:08:56 +00:00
dan
a25a42cfe7
Change the ICU tokenizer so that it does not attempt to call strlen(NULL).
...
FossilOrigin-Name: 04298f1ac42c40cb2a48092b415acf96a08954b7
2012-03-31 11:58:23 +00:00
dan
2b9ee77fd6
Fix a bug in the EXPLAIN code for listing trigger programs that was causing an out-of-bounds read.
...
FossilOrigin-Name: c9342ca58105499a5eb61c3e6d016559b6072c95
2012-03-31 09:59:44 +00:00
drh
5fb52caadf
Do more aggressive optimization of the AND operator where one side or the
...
other is always false.
FossilOrigin-Name: f9a7e179cbbeeab5e57bbf392bef89750215546b
2012-03-31 02:34:35 +00:00
mistachkin
00fa55d7da
Avoid using the OVERLAPPED struct on WinCE.
...
FossilOrigin-Name: 196ca3a8b007b9f792e969893d981f6c5aa2fccc
2012-03-30 16:44:33 +00:00
drh
f0146403a6
Simplify the winRead and winWrite VFS functions to reduce the number
...
of system calls.
FossilOrigin-Name: b34491869c4fb31d2fdd14c94a7db2e1c0e572ba
2012-03-30 15:57:45 +00:00
drh
f68686ae52
When a named CHECK constraint fails, include the name of the constraint
...
in the error message.
FossilOrigin-Name: 1b75f301affac654bee24fa247046ea0782d3c4d
2012-03-30 15:48:48 +00:00
drh
7da5fcb0b7
Fix MSVC compiler warnings in test code.
...
FossilOrigin-Name: cb7a850439c9a4a7887650d6b81d95ab8025de5b
2012-03-30 14:59:43 +00:00
drh
93416f1c83
Merge the latest trunk changes into the winrt branch.
...
FossilOrigin-Name: a1a85b846aac07979e732a9f36d178bd567e103a
2012-03-30 14:01:40 +00:00
drh
ccdf2025b5
Fix an FTS4 test script problem for windows.
...
FossilOrigin-Name: 36aa6665e709b5942b3558afbd555058b42f2c78
2012-03-30 13:34:17 +00:00
mistachkin
05340e3257
Simplify the winRead and winWrite VFS functions to reduce the number of system calls.
...
FossilOrigin-Name: 10ce846759f6f22e70bb9b67bea7a0c2b8a156fe
2012-03-30 12:27:55 +00:00
drh
f9df449809
Change the name of a local variable from "not" to "bNot" to lessen the
...
chances of it colliding with some prior #define in the appliation.
FossilOrigin-Name: cbdd86387630600b309de4aaeaa131ec7b053ce2
2012-03-30 12:10:38 +00:00
drh
e1da8fadcc
In the ".output" command-line shell, if the first character of the output
...
filename is '|' then use popen() instead of fopen().
FossilOrigin-Name: fa82062c659ffbe7ad01106d3ef54d7bb44f1f44
2012-03-30 00:05:57 +00:00
drh
4e245a4c35
Fix compiler warnings on GCC and MSVC and fix a C89-ism that
...
broke the build for MSVC.
FossilOrigin-Name: b451c0f97f0abe78ebe6c62ff489ec1ad8a1f767
2012-03-30 00:00:36 +00:00
dan
06801f6ff0
Merge fts4-incr-merge with trunk.
...
FossilOrigin-Name: 4d6de3e9bef3487f2d89167939ab2c42872d05b3
2012-03-29 15:11:32 +00:00
dan
c68939ef3e
Disable the LIKE optimization if the column on the left-hand-side of the LIKE operator belongs to a virtual table.
...
FossilOrigin-Name: 0bacb879e18026f2a8e22fe3e4bc8d27de5c4416
2012-03-29 14:29:07 +00:00
dan
9ace112c84
Fix an out of date comment on sqlite3ArrayAllocate().
...
FossilOrigin-Name: 4afdd5ae53ef0ff7c0fde74eaa04638c923c679b
2012-03-29 07:51:45 +00:00
drh
69ac85420c
Merge in the latest changes from trunk.
...
FossilOrigin-Name: 66c4aaadda433c9d479a25c27cdff84560088402
2012-03-28 16:44:13 +00:00
drh
c461a455c4
Avoid loading overflow pages just to satisfy typeof() or length() functions
...
if the correct result can be computed without the extra page fetches.
FossilOrigin-Name: 0733c98c329bc9942460746e9bbaf4b4c94c1520
2012-03-28 16:22:03 +00:00
drh
ac5e749be8
Minor changes to the core of OP_Column for performance and to clarify the
...
critical path.
FossilOrigin-Name: 868394761e41b7483a5874426ee052dfb3a9e2be
2012-03-28 16:14:50 +00:00
dan
eef7445d02
Fix a problem in fts4merge3.test.
...
FossilOrigin-Name: 64fc8b30f8bc7ddc697b6042040e958787ff3118
2012-03-28 13:55:29 +00:00
drh
dda5c08bf6
Improvements to comments. Minor changes to code in the hot path of
...
OP_Column - with the hope of get a few cycles of performance improvement.
FossilOrigin-Name: ca093103437f141caa3eb11539c6eb7b4dd65175
2012-03-28 13:41:10 +00:00
drh
3c888b7d1b
Test cases for length() of a large blob in an aggregate query.
...
FossilOrigin-Name: d095fa4bfabd765c8e935ed227a334161097dd34
2012-03-28 02:51:51 +00:00
drh
31ec740a3d
Fix the typeof() and length() optimization so that it works for aggregates
...
as well as scalar queries.
FossilOrigin-Name: bc18215a8a660442db6ddeeda4a88df0acffe0f7
2012-03-28 02:43:20 +00:00
drh
a748fdcc43
Evaluate typeof(X) and length(Y) where X is any column and Y is a blob column
...
without actually loading X and Y from disk.
FossilOrigin-Name: b899dbeb60752843287e2c6ad3577e1d00f0d587
2012-03-28 01:34:47 +00:00
drh
cdb86dc437
Add output of PRAGMAs auto_vacuum and encoding to the "schema" command of the
...
fts3view utility program.
FossilOrigin-Name: e31076319363a46905836880765bae3bf204ed19
2012-03-27 18:00:05 +00:00
dan
3b16fb0423
Really delete the fts3merge.test script (should have been deleted by the previous commit).
...
FossilOrigin-Name: 83838149d9dd7956c5f48f760c2f321180d2db5f
2012-03-27 15:10:50 +00:00
dan
311ec02587
Remove the fts3merge.test script in favour of changing the fts4merge.test script so that it runs tests using both fts4 and fts3. Fix some problems with incr-merge and FTS3 tables.
...
FossilOrigin-Name: 5c447e226afca0d46b9ed994dea26a16a9ae168c
2012-03-27 15:00:06 +00:00
drh
a1a9f0a0d8
In the fts3view utility, label the blank segments used to mark the end of a
...
segment sequence for a level/idx as "null". Improve the alignment of root
segment names.
FossilOrigin-Name: 04aea0245e4183fef3664609f5a6353b65d71a85
2012-03-27 14:54:44 +00:00
drh
1ecb59a1e5
Enhance the fts3view tool with the big-segment command and fix a bug in the
...
display of doclists.
FossilOrigin-Name: e9436d8038e5a0d1ba992a77d1064d4a55595f57
2012-03-27 13:51:31 +00:00
dan
b567bd4842
Merge the fts4-incr-merge-exp branch with fts4-incr-merge.
...
FossilOrigin-Name: eb00b95885023a8592693f0babbb0066207073b0
2012-03-27 13:44:28 +00:00
dan
5da0aa1603
Allow multiple incremental merges to proceed concurrently. This is required to prevent a large crisis-merge from occuring while an even larger incremental-merge is underway.
...
FossilOrigin-Name: 7ed9d2f24a650b424b97dfc19b8042c4cf09c82c
2012-03-27 11:48:02 +00:00
drh
40aab4c56d
Minor correct errors in the file format description for FTS3/4 contained in
...
the fts3.c header comment.
FossilOrigin-Name: fb8aacdd8fbdc946cb271cc589f76b806387937d
2012-03-27 00:38:33 +00:00
drh
280d5c33cd
Enhance fts3view to show decodes of segments and doclists.
...
FossilOrigin-Name: 6d09de231b68dd9520d99c65d133f26e90eb784f
2012-03-27 00:34:04 +00:00
drh
36f6b891e6
Add the fts3view utility program.
...
FossilOrigin-Name: f936c8ea16d21345fd1622272dc7e9850acb2493
2012-03-26 21:57:53 +00:00
drh
cbf9450404
Fix FTS3 so that it works even without SQLITE_DEBUG.
...
FossilOrigin-Name: a18c103121529c2e3c6a8ada16a4c40d14080670
2012-03-26 14:36:42 +00:00
dan
6f4df8ac83
Modify the FTS integrity-check so that the checksums do not depend on the results of signed integer overflow, which is undefined in C.
...
FossilOrigin-Name: f907fc3fb387e74bb66babcbf050748cb253a6fa
2012-03-26 10:57:31 +00:00
dan
84bce14f77
Add a comment to explain how the FTS integrity-check works.
...
FossilOrigin-Name: 64e8a116f39434a3b7347f01a47f88eef3276742
2012-03-26 10:47:03 +00:00
dan
cbcd9f5357
Add an experimental integrity-check function to FTS.
...
FossilOrigin-Name: 40fc8804743dfb005991e9c5ef7b0ebcb3c2e731
2012-03-26 10:36:55 +00:00
drh
cd217e7397
Increase the version number to 3.7.12
...
FossilOrigin-Name: d95f9fb713c7ba4e570556d835fbd77e574afdea
2012-03-25 17:25:38 +00:00
drh
fbbcd5deda
Add SQLITE_DBSTATUS_CACHE_WRITE to the command-line shell.
...
FossilOrigin-Name: 30b8dd326d28c0c08543989e376011ea41773a7e
2012-03-24 20:09:33 +00:00
drh
9ad3ee40f2
Add SQLITE_DBSTATUS_CACHE_WRITE. Used to query a database connection for the cumulative number of database pages written.
...
FossilOrigin-Name: 05f98d4eec0f029b76fd471f8d9edf2807de6b55
2012-03-24 20:06:14 +00:00
dan
bde1a0b196
Add SQLITE_DBSTATUS_CACHE_WRITE. Used to query a database connection for the cumulative number of database pages written.
...
FossilOrigin-Name: 3cb6a879f1220db03a66429d63330e27e8ca6e49
2012-03-24 19:44:56 +00:00
drh
6c2e7e19fa
Enable fts3 tables to use incremental merge by automatically creating the
...
%_stat table when it is needed.
FossilOrigin-Name: cc051fc0b2d89603b27b94cf2afdbda417ee9d94
2012-03-24 17:29:05 +00:00
dan
61fa09dbf2
Fix a failing assert() in the FTS3_LOG_MERGES related code.
...
FossilOrigin-Name: 4220d52cb3426f1680b72d57ecc9f4ade029357d
2012-03-24 17:09:11 +00:00
dan
0dfcdeb4f0
Add a comment to fts3SyncMethod() to justify the nMinMerge=64 constant.
...
FossilOrigin-Name: af55ca5fc6778cb6d1a79a17dfa2d4e567ea1ccc
2012-03-24 16:43:55 +00:00
drh
790964ebc4
Fix a bug in debugging code enabled when FTS3_LOG_MERGES is defined.
...
FossilOrigin-Name: 2e06babf49de844d0e878d68114dbcc5ad4d6e54
2012-03-24 16:18:08 +00:00
dan
45eddd6855
Remove the Fts3Table.mxLevel variable.
...
FossilOrigin-Name: 67a0cffc9d07be7f09dad9d019a18160711295cd
2012-03-24 16:11:21 +00:00
dan
1b8e7546e8
Merge auto-incr-merge with incr-merge branch.
...
FossilOrigin-Name: 1c68687ab6d05b100191663820e7d82377d52445
2012-03-24 14:45:59 +00:00
dan
4b1e4dabc3
Modify the way the number of leaves written and the maximum relative level are calculated in the auto-incr-merge code.
...
FossilOrigin-Name: 0d841c957c6ec4afecb49504177c6279e09d7012
2012-03-24 14:45:19 +00:00
drh
4ef9dfff97
An attempt at automatic incremental merging for FTS4.
...
FossilOrigin-Name: ed69434cd89084f4b57bd2cc4f5cc558904af565
2012-03-24 02:20:43 +00:00
dan
d59de73e27
Fix a spurious SQLITE_CONSTRAINT error that may be returned by an incr-merge operation.
...
FossilOrigin-Name: ed7c17ea165f6348506bd23ebc58c427bb65d697
2012-03-23 18:26:11 +00:00
dan
ba512b0b3d
Add a test to verify that sqlite3_total_changes() works with incr-merge operations.
...
FossilOrigin-Name: 1c72cecc6bf5be2a5c04ad6214a6bac22a29f860
2012-03-23 15:38:43 +00:00
dan
3501a91677
Remove an incorrect assert() statement. Fix a const-related warning.
...
FossilOrigin-Name: 96ed47493b3d46344fd2105642f31690aee06674
2012-03-23 14:38:49 +00:00
drh
d60f4f4c95
When an incremental blob cursor is invalidated (occurs when an SQL statement modifies or deletes the row the blob cursor points to) release all page references held by the cursor. Otherwise, the presence of these references may cause other code in btree.c to incorrectly infer that the database is corrupt.
...
FossilOrigin-Name: 341b703ce16361a64ed8bba64ff46792132c0b56
2012-03-23 14:23:52 +00:00
dan
865e26afa2
Fix another test case issue in trace2.test.
...
FossilOrigin-Name: 02a8e4236cf2c1c74b3c6537be1b5f197175a32e
2012-03-23 13:40:59 +00:00
mistachkin
46b721a294
Update MSVC makefile to support compiling for WinRT using one setting.
...
FossilOrigin-Name: c10794bfac0989c611ec3ea98d069cb9631a7b15
2012-03-23 12:28:21 +00:00
dan
dbd4f5cfb6
When an incremental blob cursor is invalidated (occurs when an SQL statement modifies or deletes the row the blob cursor points to) release all page references held by the cursor. Otherwise, the presence of these references may cause other code in btree.c to incorrectly infer that the database is corrupt.
...
FossilOrigin-Name: 82c3f2ba42f2c75ba6951cc2743148886a4dc0bc
2012-03-23 11:09:59 +00:00
dan
40c21432b7
Update a couple of existing test cases.
...
FossilOrigin-Name: dcb8fa0f77a44250df0e8c4f6cfb9f6e181982d7
2012-03-23 11:07:22 +00:00
dan
185c1fb02e
Add test cases to fts4merge.test.
...
FossilOrigin-Name: ecab2083334dcdde24a3c56864114979b7a6f25a
2012-03-22 17:48:00 +00:00
dan
e81eaec754
Following an incr-merge operation that does not completely consume its input segments, store context in the rowid==1 row of the %_stat table that allows the next incr-merge to pick up where the previous left off.
...
FossilOrigin-Name: ab0a4f44fb67e9f0cb82297b80e728ca58cdb0fb
2012-03-22 16:48:12 +00:00
drh
bf92ec0ce3
Always quote the names of tables in the output of the shell's ".dump" command,
...
even if the name is pure alphabetic text, in case the name is a keyword.
FossilOrigin-Name: 638b71150281a211f89b4057b0d5d32d3fbcf323
2012-03-22 12:50:34 +00:00
dan
74f47e1d31
Add fts4merge3.test, for testing that older versions of FTS4 may interoperate with incr-merge capable versions.
...
FossilOrigin-Name: 903ec5126dd981da6d7bab45c568f34b99446159
2012-03-21 14:34:23 +00:00
drh
e239233982
Merge trunk changes into the fts4-incr-merge branch.
...
FossilOrigin-Name: f61d5fb0281381228eb1a12a233bacaeb26b12a3
2012-03-20 17:04:17 +00:00
drh
d878cab51a
Remove the _SafeInit() entry points from the TCL interface. They have long
...
been no-ops. Removing them completely avoids confusion as to why they
don't work.
FossilOrigin-Name: 0fb26c7bfa7a4bb1503f90fd6f5b9c70f444665b
2012-03-20 15:10:42 +00:00
drh
7b7c359fe6
Version 3.7.11
...
FossilOrigin-Name: 00bb9c9ce4f465e6ac321ced2a9d0062dc364669
2012-03-20 11:35:50 +00:00
drh
82ebc2a098
Fix out-of-bounds array references in the "echo" virtual table module
...
used for testing. No changes to the SQLite core.
FossilOrigin-Name: 7b449b301ea03295262b8d572b02625e4b39cfa5
2012-03-20 03:10:51 +00:00
mistachkin
f39eaf29d0
Add WinRT comments to MSVC makefile.
...
FossilOrigin-Name: ddea657bd8fe3762bd460524ac9223f0a5b09752
2012-03-20 02:18:42 +00:00
mistachkin
428bef2e07
Remove version information from the MSVC makefile as it is no longer necessary.
...
FossilOrigin-Name: 6f0c1f9761be0402b82945517fdb3a36aeacbaeb
2012-03-20 02:10:22 +00:00
mistachkin
9917a71da0
Merge updates from trunk.
...
FossilOrigin-Name: 4ab1ffd45d4c25368b9b393a3336068b747d8b22
2012-03-19 23:32:26 +00:00
mistachkin
ca04d8a9f1
Fix typo, use the syscall table for osOutputDebugStringA.
...
FossilOrigin-Name: 9598c2a398a6e7d9c3ee8b2ae32c21538ad3e15a
2012-03-19 23:28:35 +00:00
drh
0299b40f0f
Add additional test cases to e_insert.test. Update evidence marks.
...
no changes to core code.
FossilOrigin-Name: 036395c0a8e08883b11df025e3da9e2461e4b1eb
2012-03-19 17:42:46 +00:00
drh
d13a3bc772
Fix one more compiler warning missed by the previous check-in.
...
FossilOrigin-Name: bc03d99a78e90c02b69037e5f5f81537b5a3ac60
2012-03-19 14:57:49 +00:00
drh
01ea399a84
Suppress harmless compiler warnings on windows in FTS4 and RTREE.
...
FossilOrigin-Name: 4fd68647c8d4b120e04d054617cef31001f44c6f
2012-03-19 14:51:19 +00:00
drh
bbe0520329
Avoid a compiler warning (an incorrect compiler warning, at that) in vs2010.
...
FossilOrigin-Name: 7dd97f12cd268cac1241f0f3e8de94bb629b97c7
2012-03-19 14:28:43 +00:00
dan
0d1614c731
Ensure that compatible malloc and free functions are used with stat3 data if SQLITE_ENABLE_STAT3 is defined.
...
FossilOrigin-Name: 32bb1ecee4e43a4683512dbca047abf735afd313
2012-03-19 10:21:37 +00:00
mistachkin
5593b2e653
On Windows, when no temporary path is available, skip prepending the directory separator.
...
FossilOrigin-Name: 32b5c20e54474fcc33ba937293e97566a555e733
2012-03-18 03:22:44 +00:00
mistachkin
86f89871b0
Add SQLITE_OMIT_SHUTDOWN_DIRECTORIES compile-time option to disable clearing the sqlite3_data_directory and sqlite3_temp_directory variables during sqlite3_shutdown. Also, only clear the variables if the heap was actually shutdown.
...
FossilOrigin-Name: 1ae9f9e4f730eccbc0fc3408de1ac3c4be931e01
2012-03-18 01:32:44 +00:00
dan
d1ab097d45
Fix various incorrect and missing comments and other style issues in and around the FTS incremental merge code.
...
FossilOrigin-Name: 7aabb62c8ccbd2b8d216e25226f06e5820dec38a
2012-03-17 16:56:57 +00:00
dan
db0ad5f204
In pager1.test, use "file attr test.db -readonly 0" before "file attr test.db -perm rw-rw-rw-", not after.
...
FossilOrigin-Name: 4f5283f18f570a09b95c26e5aa14885ada518dd2
2012-03-17 15:12:16 +00:00
dan
a2e85abaa2
Modify a test in ioerr2.test to account for the new SQLITE_ABORT_ROLLBACK extended error code.
...
FossilOrigin-Name: affaebde109e8dd851474ffe7b7d48b1aae8c7ed
2012-03-17 09:43:09 +00:00
drh
1a342a4a73
Update the trace2.test script for languageid.
...
FossilOrigin-Name: a11528ac575fa20fd8022756d042a32fe1272e12
2012-03-16 17:00:49 +00:00
drh
c8d7b24e93
Cherrypick the [3475092cff] fix for 32-bit overflow with large language-ids
...
into trunk.
FossilOrigin-Name: 2755edc7f1186ba8955f2c3550a90f40a55ddae2
2012-03-16 16:52:54 +00:00
dan
81b35dc66c
Fix some integer overflow problems that can occur when using large langauge id values.
...
FossilOrigin-Name: 3475092cff862080a020d386076d739f0d22c9b2
2012-03-16 15:54:19 +00:00
dan
e931b7f45f
Add a comment to the FTS getAbsoluteLevel() function. No actual code changes.
...
FossilOrigin-Name: 7e0f861beda4d74d0c3c9fb4abb3ddb5fee346bd
2012-03-16 14:54:07 +00:00
mistachkin
e4c46aaccd
Reset the sqlite3_data_directory and sqlite3_temp_directory variables when the sqlite3_shutdown function is called since they may refer to memory allocated by the heap subsystem that was just shutdown.
...
FossilOrigin-Name: cd70bc4b788b947d47a7a7158c27028160df06bd
2012-03-16 10:28:40 +00:00
drh
7a48480d07
Fix harmless compiler warnings.
...
FossilOrigin-Name: 74eadeec34c4b19cf5f8b7f648db3b7ad601a00e
2012-03-16 00:28:11 +00:00
drh
a929e6282b
Add the sqlite3_db_readonly() API to trunk.
...
FossilOrigin-Name: fed134a5f395533de0c9d76950697c060ddb126d
2012-03-15 22:54:37 +00:00
drh
421377e67a
Add the sqlite3_db_readonly() interface. This is still tentative, pending
...
a closer look at other ideas to accomplish the same thing.
FossilOrigin-Name: 254f99ea9ff1534948bdb179e69ab0c940c87ec1
2012-03-15 21:28:54 +00:00
dan
4ab6f2b9c1
Modify incremental merge code to merge nMin segments at a time.
...
FossilOrigin-Name: cd34bc1af4ba608ea3b52bab55bcfe0086711900
2012-03-15 17:45:50 +00:00
mistachkin
40c471d921
Add SQLITE_WIN32_HEAP_CREATE compiler define to control whether or not the Win32 native allocator will create an isolated heap for all allocated data.
...
FossilOrigin-Name: 8693fb652ecd1ad0b03e9067839970b321c3f904
2012-03-15 03:40:59 +00:00
mistachkin
16afb9ee96
Fix macro issues for osGetProcessHeap and sqlite3_win32_write_debug.
...
FossilOrigin-Name: d3d071598aba367e3d73001ab38d7a78306875ea
2012-03-14 23:08:59 +00:00
mistachkin
e8c9a184be
Fix typos, use #if instead of #ifdef when checking for the Win32 native heap validation define.
...
FossilOrigin-Name: 845aa46f69784420ada4116078f8dc0a68cf3707
2012-03-14 20:20:37 +00:00
mistachkin
0df898e27d
Avoid redefining macros. Enable use of the Win32 native heap on WinRT. Use the syscall table to call OutputDebugStringW and fix type casting warnings.
...
FossilOrigin-Name: 46c412a8f6470c9e8c4bdeafaf4db435fbb694ab
2012-03-14 20:17:34 +00:00
dan
5730ef599c
Add tests for incremental merge code.
...
FossilOrigin-Name: 570473729d6561d81e6e5f8884fd18487008636e
2012-03-14 20:01:52 +00:00
dan
a2af0aecdb
Avoid allocating a large object on the stack in the incremental merge code. Use sqlite3_malloc() instead.
...
FossilOrigin-Name: 36ae510de45be44efd34cff242d02fb21b7419ac
2012-03-14 12:17:40 +00:00
dan
8af1fc721e
Fix another bug in the incremental merge code.
...
FossilOrigin-Name: f97b12e0955c4c29f9c31a186d72d87f7407782e
2012-03-14 11:51:31 +00:00
mistachkin
25cf4fe988
Remove SQLITE_OS_WINRT setting from MSVC makefile.
...
FossilOrigin-Name: df4caf1326f5aa3ba11345e5e9604d7af4385fe8
2012-03-14 03:41:32 +00:00
mistachkin
184997c9a6
Add warning to the docs about changing the data directory when a database connection is open.
...
FossilOrigin-Name: c07cd85ca9698b48f960b164cab3a38472a17640
2012-03-14 01:28:35 +00:00
mistachkin
a112d140ae
Add experimental support for resolving relative database file paths using a fixed user-defined directory.
...
FossilOrigin-Name: 7354ae8fd3eccee2cf9f6501da5b1a014c31556f
2012-03-14 00:44:01 +00:00
dan
604f58a686
Fix some bugs in the incremental merge code. Some remain.
...
FossilOrigin-Name: bff21683705a61b8b8672e0b44c287d1dc7c32a9
2012-03-13 19:56:34 +00:00
mistachkin
5ff72401c9
Add assert to verify the number of characters to write in sqlite3_win32_write_debug.
...
FossilOrigin-Name: 8083f6164f3308c1c1d4f4d84be1894e382fe2e6
2012-03-13 03:38:22 +00:00
mistachkin
f4f327ce07
Defer creation of the sleep event object until it is needed. Added sqlite3_win32_write_debug and sqlite3_win32_sleep APIs to assist in portability to WinRT.
...
FossilOrigin-Name: 7af88ad306612dd316827c506dbf8df7477b2ec1
2012-03-13 03:35:07 +00:00
mistachkin
5cfbeac070
Cleanup the Windows syscall table, removing the unused CreateFileMapping entry.
...
FossilOrigin-Name: fb7d8bf6ec5c0ef9a948bc14c28770e34f57db1a
2012-03-13 01:30:20 +00:00
mistachkin
df562d5535
More changes required to compile for WinRT using VS 11 beta. Also, replace more APIs with their WinRT alternatives.
...
FossilOrigin-Name: 6b997d9c32076c480ff4f101ff93bae3f443e252
2012-03-13 01:16:57 +00:00
drh
331b67c151
Candidate fix for the optimizer problem described in ticket
...
[b7c8682cc17f3] which can causes a LEFT JOIN to be changed
into a INNER JOIN if there are OR terms in the WHERE clause.
FossilOrigin-Name: 0dc4cb935514131c99172175d57feec3a1743aa9
2012-03-09 22:02:08 +00:00
drh
ab4f6385de
Minor commenting and stylistic changes only.
...
FossilOrigin-Name: a1747086c5e0c152fcf4bd9fa80a61b6f03f4a94
2012-03-09 12:52:43 +00:00
mistachkin
776f5c96f4
Merge test current directory value fix from trunk and fix uri tests.
...
FossilOrigin-Name: 88963c33c19a051280f7f31bdc1b322d6837cf43
2012-03-08 20:39:08 +00:00
mistachkin
533b8f6d47
On Windows, make sure the returned test current directory value does not contain any backslashes.
...
FossilOrigin-Name: efee39e64bd95c284220fdb0ae8ee6c1847fadab
2012-03-08 20:28:31 +00:00
mistachkin
6aa18c95f1
Merge and manually resolve testing updates from trunk.
...
FossilOrigin-Name: 5eecdb44dd809e91002b8ecf59ada72f4b56549a
2012-03-08 20:22:42 +00:00
mistachkin
f8a784645c
On Windows, make sure the current directory value used by the test suite is 'normalized' to what the parent command shell sees. Also, clean the test directories used by the quota2.test file.
...
FossilOrigin-Name: 82bcd7ec1531f6d71c079578434c58d3ce46a1de
2012-03-08 20:00:36 +00:00
dan
593c9824bc
Add the 'merge=?,?' command to fts4. This still needs some work.
...
FossilOrigin-Name: 741b8f897750eac3c9774fd65de7e40bb89781b1
2012-03-08 18:39:03 +00:00
mistachkin
5483f772b1
When compiled for WinRT, use the CreateFile2 and LoadPackagedLibrary functions instead of CreateFile and LoadLibrary.
...
FossilOrigin-Name: 27d6942ca270d6e724ffd230ed58a8683d67dfa4
2012-03-07 20:11:47 +00:00
drh
2938f924cc
If a CHECK constraint is named, report that name on the error message when
...
the constraint fails.
FossilOrigin-Name: 9a0f90d9deb335ac71044b8afa81538d85cc7ccf
2012-03-07 19:13:29 +00:00
drh
4cdb9076d6
Merge in the latest trunk changes.
...
FossilOrigin-Name: ca4708531a5e0debbe3d0999a4d210ef2a347972
2012-03-07 16:52:38 +00:00
mistachkin
4a41f34552
Fix for test issues when there is no current directory support due to being compiled for WinRT.
...
FossilOrigin-Name: a811cb01528beab8afd899411d187d4d960ddcc8
2012-03-06 03:00:49 +00:00
mistachkin
c548465435
Add compile-time define to indicate if the VFS supports the concept of a current directory (as WinCE and WinRT do not). Avoid using the GetTempPath and GetFullPathName APIs on WinRT. Some tests still need adjustments.
...
FossilOrigin-Name: 86c049a171acc3f4a43771f3e7176a90210d7799
2012-03-05 22:52:33 +00:00
dan
fd6ddf91b0
Fix a problem compiling the test code in fts3_test.c when SQLITE_ENABLE_FTS3 is not defined.
...
FossilOrigin-Name: b00ccda307caae597c143ab0586f90acb77f79cf
2012-03-05 16:24:26 +00:00
dan
3a1abde7c8
Merge the fts4-languageid branch with the trunk.
...
FossilOrigin-Name: 99a9073b5e411ce94f38ce49608baaa15de8b850
2012-03-05 15:33:32 +00:00
mistachkin
9668e24e62
When creating the event used to sleep on WinRT, request the minimum access rights required for the desired operations on it (i.e. SYNCHRONIZE).
...
FossilOrigin-Name: ed603d75941ace159773b1a22ace84d51b630ad5
2012-03-04 02:56:10 +00:00
dan
996073b3ae
Add the xLanguageid method to sqlite3_fts3_tokenizer versions 1 and greater.
...
FossilOrigin-Name: f8e9c445dd358c40e5a7bf3756b9f291909dbea7
2012-03-03 18:46:41 +00:00
mistachkin
287a48d67b
When compiled for WinRT, avoid using MapViewOfFile and GetFileAttributes. Also, reset the private 'sleep' event handle when the VFS is cleaned up.
...
FossilOrigin-Name: 38df8fc1b49d55b61cb168a61134b4a314a62f21
2012-03-03 13:15:25 +00:00
drh
c724008b26
Add a test case for ticket [3557ad65a076c].
...
FossilOrigin-Name: 4f34d7077b9acf7926c5e7375ca870d4ed3c60b9
2012-03-03 01:44:12 +00:00
drh
7f67d94cfe
Fix a bug [3557ad65a07] that causes incorrect DISTINCT processing on
...
an indexed query involving the IN operator.
FossilOrigin-Name: dec9a995d7012a1f85be4edb71240b9d4f07c60e
2012-03-03 00:34:47 +00:00
mistachkin
62d1924fc5
When compiled for WinRT, avoid using the FORMAT_MESSAGE_ALLOCATE_BUFFER flag to FormatMessage (i.e. because LocalFree is unavailable).
...
FossilOrigin-Name: 9eb331be7e905d11d9075ce1596478b55a7f488b
2012-03-02 23:53:54 +00:00
mistachkin
5b044545d7
Fix test pragma-19.5 so that it works on file names that may contain spaces and/or backslashes.
...
FossilOrigin-Name: 9aaa1ab7c63c9045fecf5e965b333cc5f28b0791
2012-03-02 22:41:06 +00:00
mistachkin
2a5cfb31fd
When running on Windows with an NT-based kernel, always use the LockFileEx/UnlockFileEx functions (with the correct flags).
...
FossilOrigin-Name: 3e7ba3ddb956056b8132ed383feed4f329c634e0
2012-03-02 22:38:49 +00:00
drh
9db1d56f02
Remove an obsolete comment from FTS3. No code changes.
...
FossilOrigin-Name: 74d224b14467d8a6915d3cf372f45e0d28708fa2
2012-03-02 20:34:57 +00:00
dan
7395599031
Fix problems with combining content= and languageid= in a single fts4 table.
...
FossilOrigin-Name: 22491e7bc38aee43819b888e04241cb6a6ef73a3
2012-03-02 19:53:02 +00:00
dan
c0db214b10
Add test for FTS 'rebuild' command.
...
FossilOrigin-Name: 181bc35731f19c3e4497ba3338c209918d34ea69
2012-03-02 16:18:21 +00:00
mistachkin
75b70a2087
Add new Win32 APIs used to the system call table. Add error handling code for SetFilePointerEx. Make sure the last error number is saved from the call to GetFileInformationByHandleEx.
...
FossilOrigin-Name: a782d2dc3cd4ef49ed46b361cdd331be846c3d50
2012-03-02 13:47:16 +00:00
dan
8fb662b0be
Fix the FTS 'optimize' command on multi-lingual databases.
...
FossilOrigin-Name: 65fa693729a336e4d905ce72e6b9ccf4faa772bd
2012-03-02 12:26:19 +00:00
dan
e3ddd1ac42
Fix a bug in merging FTS language tables for languages other than language 0.
...
FossilOrigin-Name: d281cb8984c911a4c0cce2ec299e1351d8e580e4
2012-03-02 11:48:50 +00:00
drh
d52ee7298e
Omit all ANSI APIs for winRT.
...
FossilOrigin-Name: cbf23b461f599d0b025c0f42dd3189cfa4e84bac
2012-03-02 00:00:47 +00:00
drh
24560d16e9
Use GetInformationByHandleEx() instead of GetFileSize() on winRT.
...
FossilOrigin-Name: 119f251de77aa88cf8ff9fcc72bfbecbe6b741e3
2012-03-01 22:44:56 +00:00
drh
ee3a77de45
Do not run the large file tests if a file named "skip-big-file" exists
...
in the test directory. This enables tests to be run much faster on
systems that lack sparse file support.
FossilOrigin-Name: 5a83912352ad6626970efd72e70c433e3a219b6b
2012-03-01 22:33:41 +00:00
drh
8045df0a7d
Use SetFilePointerEx() instead of SetFilePointer() on winRT.
...
FossilOrigin-Name: 36efafc618017b6448f222776d0143e5f98d1e65
2012-03-01 22:06:30 +00:00
drh
cd565fd118
Fix a typo in the header comment of sqlite3_commit_hook().
...
FossilOrigin-Name: 3784d1475b49f24e4a51450edc94aee66fd48fe4
2012-03-01 21:30:44 +00:00
drh
7acec68a6e
Use WaitForSingleObjectEx() as a substitute for Sleep on winRT.
...
FossilOrigin-Name: bf897be0daa2f7e16f63b78849ffb76ce02d48f1
2012-03-01 21:19:39 +00:00
drh
cf3d7a4e13
Add recognition of the SQLITE_OS_WINRT compile-time option.
...
Use InitializeCriticalSectionEx() under winRT.
FossilOrigin-Name: 8b7ca8a09f7b69db1fe766616cba0307e681a6f3
2012-03-01 20:05:41 +00:00
dan
7fcb214b93
Add the "languageid=" option to fts4. This code is still largely untested and alsmost certainly buggy.
...
FossilOrigin-Name: bea257f70f10dd1111d79cabd1e1462dc651704d
2012-03-01 19:44:20 +00:00
drh
11de93360f
Add back in some #includes that were removed incorrectly by the
...
previous check-in.
FossilOrigin-Name: 718905367ff3f86a449c2c27f724089ba31dea3a
2012-03-01 19:14:13 +00:00
drh
815aac8e0f
Remove unused #defines from os.h.
...
FossilOrigin-Name: c0891296b49fb95917db8a881425f8131cbf6de7
2012-03-01 18:16:48 +00:00
dan
f602963dbc
Fix spurious errors that may occur if an empty database is opened and then initialized as a WAL database by a second connection.
...
FossilOrigin-Name: 16330a2f7262173a32ae48a72c0ee2522b6dc554
2012-02-28 17:57:34 +00:00
dan
4aced72a59
Fix a case where an error code was being overwritten in multiplexDelete().
...
FossilOrigin-Name: c267893a0813beb1764071409025e178318e1ca3
2012-02-28 11:52:12 +00:00
drh
c611ee94bb
Fix the xDelete implementation of the multiplexor VFS so that it correctly
...
deletes overflow WAL files.
FossilOrigin-Name: e44e26771e5aa48f3bfa14d6db3e669b5b2a1e73
2012-02-27 14:28:50 +00:00
drh
5fb96aaf74
Separate multiplexor overflow pages for -wal and -journal files into
...
separate namespaces when in 8+3 filename mode.
FossilOrigin-Name: d6850667ea61172ea0ebea4a22b6b306f74775fa
2012-02-24 16:13:55 +00:00
drh
1a3dd3d445
Fix the multiplexor so that it works with WAL mode and 8+3 filenames.
...
FossilOrigin-Name: a9fcb46bc08c29aebaf3bc999f45846c3c320f68
2012-02-24 15:57:13 +00:00
drh
70708600b5
Add #ifdef SQLITE_ENABLE_ZIPVFS around those bits of code that are only
...
used by ZIPVFS.
FossilOrigin-Name: 3130275c64a60c5cfacbd11123305e6d99ea866d
2012-02-24 14:33:28 +00:00
drh
8d93684874
If the SQLITE_FCNTL_PRAGMA file control returns something other than
...
SQLITE_NOTFOUND, then skip the rest of Pragma code generation.
FossilOrigin-Name: 9e6d340f557c2f2c8a07300ac60357af9906a7fa
2012-02-24 00:03:12 +00:00
drh
a40eb7cfee
A simple change that allows the SQLITE_32BIT_ROWID compile-time option to
...
work better.
FossilOrigin-Name: f9df4063fbd100ce306a89fc649c1860fd801f31
2012-02-24 00:02:28 +00:00
drh
63296052a1
Fix an obscure bug that causes a crash when parsing certain invalid SQL
...
statements.
FossilOrigin-Name: c8c7846fb990199dcc0774a69e8257510bc36f2d
2012-02-23 17:35:28 +00:00
dan
bf24261b7b
Fix a typo made inside an assert() statement in the previous commit.
...
FossilOrigin-Name: f0640615f25ebe8bf2eed0e1a0f2e309471889fe
2012-02-23 16:45:42 +00:00
dan
b3bdc72ded
Add the sqlite3PagerWalFramesize() function to pager.c. This is used by zipvfs.
...
FossilOrigin-Name: 786e24dc56504d1958db0618e645610f2600a087
2012-02-23 15:35:49 +00:00
drh
49dc66df0f
Expose the sqlite3_stricmp() interface. Add the SQLITE_FCNTL_PRAGMA file
...
control.
FossilOrigin-Name: c539cf21ef8f4eb4782790aa97a67d10ae9ffd64
2012-02-23 14:28:46 +00:00
drh
c8517f614d
Move test logic for SQLITE_FCNTL_PRAGMA out of os_unix.c and into test_vfs.c.
...
FossilOrigin-Name: c81fc40b2b584820ac7d1c3848ebeb7225d4eeeb
2012-02-22 20:08:49 +00:00
drh
92c700dbb7
If the SQLITE_FCNTL_PRAGMA file-control returns anything other than
...
SQLTIE_NOTFOUND and SQLITE_OK, then treat the result as an error.
FossilOrigin-Name: 5643618108a8aafba67ed4004039b862bb5e5da8
2012-02-22 19:56:17 +00:00
drh
eb9a9696f6
Disable the "filename" pragma implemented by os_unix.c except when compiled
...
with SQLITE_TEST.
FossilOrigin-Name: 9a1da91850b6074e5f9d18382f517eb868cad63c
2012-02-22 19:03:19 +00:00
drh
e4d25e9cfb
Make benign any malloc failures inside the sqlite3_file_control() call within
...
PRAGMA parsing. Add a couple simple tests for SQLITE_FCNTL_PRAGMA.
FossilOrigin-Name: a1f29fa653b788f563967f55c3d20e64cbe3f549
2012-02-22 18:21:20 +00:00
drh
3fa9730273
Change the SQLITE_FCNTL_PRAGMA file-control so that it can return a string
...
value.
FossilOrigin-Name: fd8d7440277b17f57a6dc0a210f42adf1fa2dcd2
2012-02-22 16:58:36 +00:00
drh
06fd5d63a4
Begin adding support for SQLITE_FCNTL_PRAGMA.
...
FossilOrigin-Name: 5be07904baf6e5b8b99ca6f4bb6ddec973e59cd4
2012-02-22 14:45:19 +00:00
drh
cebeee5dcb
Avoid redefining NDEBUG if the fuzzer is included in an amalagmated source file.
...
FossilOrigin-Name: f8ac826f95ae6b7b981e4765d2e65b6839d0eff9
2012-02-21 18:35:42 +00:00
dan
99c7d468a7
Prevent the fuzzer from ever returning a string longer than 100 bytes.
...
FossilOrigin-Name: 969095ca3067d60f4d3a0a4ad419541cb8b146db
2012-02-21 18:00:20 +00:00
dan
4965ebceb7
Further fuzzer test cases. Fix a case in the fuzzer where an error code was being dropped.
...
FossilOrigin-Name: 8b77d3953f082e6fa42e42fe903ea9eddf99dd91
2012-02-21 14:11:12 +00:00
dan
766348febe
Add further test cases and minor fixes for the fuzzer.
...
FossilOrigin-Name: 583dde93a9176ba4fff85241bafbbe4e5a6cc95f
2012-02-21 10:36:27 +00:00
drh
5577671da3
Updates to the instructions in the header comment of the fuzzer implementation.
...
New test cases for the fuzzer.
FossilOrigin-Name: bf1dc7907cf1a5c7e19b04fa1278b2089316c30a
2012-02-20 22:44:12 +00:00
dan
a8ab692fa2
Change the way the fuzzer (test_fuzzer.c) works so that it loads its configuration from a database table.
...
FossilOrigin-Name: 90b7b957f8933047fd2878048dfa3ec4891988b8
2012-02-20 20:03:48 +00:00
dan
75f8f75f1e
Fix a case in test_fuzzer.c causing transformations from the wrong ruleset to be applied in some cases.
...
FossilOrigin-Name: cb5f5ebc563b8d3e47bc30b6dbb374bb91efd3ef
2012-02-20 19:36:09 +00:00
drh
6e5c5f4124
Increase the maximum ruleset id in the fuzzer from 50 to 2^31-1.
...
FossilOrigin-Name: 760e009adc6d0fffb8e6f64c7ec283938a417a77
2012-02-14 18:56:01 +00:00
drh
5beafd6ab7
Enhance the fuzzer virtual table to support multiple rule sets.
...
FossilOrigin-Name: a82938731b21d6166d7d482994cb065c8b725083
2012-02-14 15:34:50 +00:00
drh
99b18401ab
Merge the non-blocking ROLLBACK changes into trunk.
...
FossilOrigin-Name: 9c572d424a20b0585bfac358a5d1ee5276dd05ba
2012-02-13 21:24:03 +00:00
drh
ef595984ec
Fix a harmless compiler warning introduced by the previous check-in.
...
FossilOrigin-Name: a8a042a751557d06bf04455ed7629cb29adcd87f
2012-02-13 20:28:15 +00:00
drh
8c815d14f8
On unix, ignore the umask when creating journal files. That way, journal files
...
will have exactly the same permissions as the original database and any
process that has permission to write to the database can also recover
hot journals.
FossilOrigin-Name: 84b324606adc8437338c086404eb157f30f04130
2012-02-13 20:16:37 +00:00
drh
21021a5cbf
Add the new SQLITE_ABORT_ROLLBACK extended error code to be returned for
...
statements that are cancelled due to a rollback.
FossilOrigin-Name: 549f4fd00d8325c10099b100e5202b77ee1d83ad
2012-02-13 17:01:51 +00:00
drh
0f198a7409
Change the ROLLBACK command so that pending statements to not block it. The
...
pending statements instead return SQLITE_ABORT upon next access. Note: This
causes separate shared-cache connections in read_uncommitted mode to abort as
well.
FossilOrigin-Name: 9b66c79e054c8a109d1ee8d35fed1c42814c330d
2012-02-13 16:43:16 +00:00
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