]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
7 years agoAdd new interfaces sqlite3_result_pointer(), and branch-3.7.11
drh [Fri, 21 Jul 2017 03:09:35 +0000 (03:09 +0000)] 
Add new interfaces sqlite3_result_pointer(), and
sqlite3_value_pointer() and use them to transfer the eponymous FTS3 column
pointer to the snippet() and offsets() routines.  This changes is
inspired by check-in [72de49f2] but is new implementation, not a cherry-pick.

FossilOrigin-Name: f0f492245e957f5339c5aef02716321e45c18914b9a78387e4158f87fc2d83f9

10 years agoSilently ignore any attempt to add a prefix index for prefixes zero bytes in size...
drh [Thu, 21 May 2015 02:24:35 +0000 (02:24 +0000)] 
Silently ignore any attempt to add a prefix index for prefixes zero bytes in size to an fts3/4 table. Or any prefix index size so large that it overflows a 32-bit signed integer.  Cherrypick [ad4b19d2ac0889a]

FossilOrigin-Name: 000197cc4e3874711388d79d9ad5af6f0aba6cf9

10 years agoEnsure that tables names are dequoted exactly once by the trigger logic.
drh [Thu, 21 May 2015 02:20:47 +0000 (02:20 +0000)] 
Ensure that tables names are dequoted exactly once by the trigger logic.
Cherrypick [59e92bd9521f1e8] and [9d887b92f8086961e].

FossilOrigin-Name: 9e3f64a4f4182ad80e82edb53095ed508e8b1d13

10 years agoWhen parsing the schema, ignore any SQL that does not begin
drh [Thu, 21 May 2015 02:07:56 +0000 (02:07 +0000)] 
When parsing the schema, ignore any SQL that does not begin
with "CREATE". Cherrypick of [d3c00d61581c] with additional changes.

FossilOrigin-Name: 09784f376b47b6ca539a5106dfa65d8abebe1ef2

10 years agoDo not allow virtual table constructors to be called recursively.
drh [Thu, 21 May 2015 01:04:17 +0000 (01:04 +0000)] 
Do not allow virtual table constructors to be called recursively.
Cherrypick [0a72726da21581ab]

FossilOrigin-Name: 0f0694e4245083f6abb4ce104c39add45f2eb71a

10 years agoAdd the ".open" command to the command-line shell.
drh [Thu, 21 May 2015 00:50:37 +0000 (00:50 +0000)] 
Add the ".open" command to the command-line shell.
Cherrypick from [21eccb919441].

FossilOrigin-Name: a71e2a72c592f014051a00af9c7cb5c390612cb2

13 years agoVersion 3.7.11 version-3.7.11
drh [Tue, 20 Mar 2012 11:35:50 +0000 (11:35 +0000)] 
Version 3.7.11

FossilOrigin-Name: 00bb9c9ce4f465e6ac321ced2a9d0062dc364669

13 years agoFix out-of-bounds array references in the "echo" virtual table module
drh [Tue, 20 Mar 2012 03:10:51 +0000 (03:10 +0000)] 
Fix out-of-bounds array references in the "echo" virtual table module
used for testing.  No changes to the SQLite core.

FossilOrigin-Name: 7b449b301ea03295262b8d572b02625e4b39cfa5

13 years agoAdd additional test cases to e_insert.test. Update evidence marks.
drh [Mon, 19 Mar 2012 17:42:46 +0000 (17:42 +0000)] 
Add additional test cases to e_insert.test.  Update evidence marks.
no changes to core code.

FossilOrigin-Name: 036395c0a8e08883b11df025e3da9e2461e4b1eb

13 years agoFix one more compiler warning missed by the previous check-in.
drh [Mon, 19 Mar 2012 14:57:49 +0000 (14:57 +0000)] 
Fix one more compiler warning missed by the previous check-in.

FossilOrigin-Name: bc03d99a78e90c02b69037e5f5f81537b5a3ac60

13 years agoSuppress harmless compiler warnings on windows in FTS4 and RTREE.
drh [Mon, 19 Mar 2012 14:51:19 +0000 (14:51 +0000)] 
Suppress harmless compiler warnings on windows in FTS4 and RTREE.

FossilOrigin-Name: 4fd68647c8d4b120e04d054617cef31001f44c6f

13 years agoAvoid a compiler warning (an incorrect compiler warning, at that) in vs2010.
drh [Mon, 19 Mar 2012 14:28:43 +0000 (14:28 +0000)] 
Avoid a compiler warning (an incorrect compiler warning, at that) in vs2010.

FossilOrigin-Name: 7dd97f12cd268cac1241f0f3e8de94bb629b97c7

13 years agoEnsure that compatible malloc and free functions are used with stat3 data if SQLITE_E...
dan [Mon, 19 Mar 2012 10:21:37 +0000 (10:21 +0000)] 
Ensure that compatible malloc and free functions are used with stat3 data if SQLITE_ENABLE_STAT3 is defined.

FossilOrigin-Name: 32bb1ecee4e43a4683512dbca047abf735afd313

13 years agoIn pager1.test, use "file attr test.db -readonly 0" before "file attr test.db -perm...
dan [Sat, 17 Mar 2012 15:12:16 +0000 (15:12 +0000)] 
In pager1.test, use "file attr test.db -readonly 0" before "file attr test.db -perm rw-rw-rw-", not after.

FossilOrigin-Name: 4f5283f18f570a09b95c26e5aa14885ada518dd2

13 years agoModify a test in ioerr2.test to account for the new SQLITE_ABORT_ROLLBACK extended...
dan [Sat, 17 Mar 2012 09:43:09 +0000 (09:43 +0000)] 
Modify a test in ioerr2.test to account for the new SQLITE_ABORT_ROLLBACK extended error code.

FossilOrigin-Name: affaebde109e8dd851474ffe7b7d48b1aae8c7ed

13 years agoUpdate the trace2.test script for languageid.
drh [Fri, 16 Mar 2012 17:00:49 +0000 (17:00 +0000)] 
Update the trace2.test script for languageid.

FossilOrigin-Name: a11528ac575fa20fd8022756d042a32fe1272e12

13 years agoCherrypick the [3475092cff] fix for 32-bit overflow with large language-ids
drh [Fri, 16 Mar 2012 16:52:54 +0000 (16:52 +0000)] 
Cherrypick the [3475092cff] fix for 32-bit overflow with large language-ids
into trunk.

FossilOrigin-Name: 2755edc7f1186ba8955f2c3550a90f40a55ddae2

13 years agoFix harmless compiler warnings.
drh [Fri, 16 Mar 2012 00:28:11 +0000 (00:28 +0000)] 
Fix harmless compiler warnings.

FossilOrigin-Name: 74eadeec34c4b19cf5f8b7f648db3b7ad601a00e

13 years agoAdd the sqlite3_db_readonly() API to trunk.
drh [Thu, 15 Mar 2012 22:54:37 +0000 (22:54 +0000)] 
Add the sqlite3_db_readonly() API to trunk.

FossilOrigin-Name: fed134a5f395533de0c9d76950697c060ddb126d

13 years agoAdd the sqlite3_db_readonly() interface. This is still tentative, pending db-readonly-api
drh [Thu, 15 Mar 2012 21:28:54 +0000 (21:28 +0000)] 
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

13 years agoCandidate fix for the optimizer problem described in ticket
drh [Fri, 9 Mar 2012 22:02:08 +0000 (22:02 +0000)] 
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

13 years agoOn Windows, make sure the returned test current directory value does not contain...
mistachkin [Thu, 8 Mar 2012 20:28:31 +0000 (20:28 +0000)] 
On Windows, make sure the returned test current directory value does not contain any backslashes.

FossilOrigin-Name: efee39e64bd95c284220fdb0ae8ee6c1847fadab

13 years agoOn Windows, make sure the current directory value used by the test suite is 'normaliz...
mistachkin [Thu, 8 Mar 2012 20:00:36 +0000 (20:00 +0000)] 
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

13 years agoFix a problem compiling the test code in fts3_test.c when SQLITE_ENABLE_FTS3 is not...
dan [Mon, 5 Mar 2012 16:24:26 +0000 (16:24 +0000)] 
Fix a problem compiling the test code in fts3_test.c when SQLITE_ENABLE_FTS3 is not defined.

FossilOrigin-Name: b00ccda307caae597c143ab0586f90acb77f79cf

13 years agoMerge the fts4-languageid branch with the trunk.
dan [Mon, 5 Mar 2012 15:33:32 +0000 (15:33 +0000)] 
Merge the fts4-languageid branch with the trunk.

FossilOrigin-Name: 99a9073b5e411ce94f38ce49608baaa15de8b850

13 years agoAdd the xLanguageid method to sqlite3_fts3_tokenizer versions 1 and greater. fts4-languageid
dan [Sat, 3 Mar 2012 18:46:41 +0000 (18:46 +0000)] 
Add the xLanguageid method to sqlite3_fts3_tokenizer versions 1 and greater.

FossilOrigin-Name: f8e9c445dd358c40e5a7bf3756b9f291909dbea7

13 years agoAdd a test case for ticket [3557ad65a076c].
drh [Sat, 3 Mar 2012 01:44:12 +0000 (01:44 +0000)] 
Add a test case for ticket [3557ad65a076c].

FossilOrigin-Name: 4f34d7077b9acf7926c5e7375ca870d4ed3c60b9

13 years agoFix a bug [3557ad65a07] that causes incorrect DISTINCT processing on
drh [Sat, 3 Mar 2012 00:34:47 +0000 (00:34 +0000)] 
Fix a bug [3557ad65a07] that causes incorrect DISTINCT processing on
an indexed query involving the IN operator.

FossilOrigin-Name: dec9a995d7012a1f85be4edb71240b9d4f07c60e

13 years agoFix test pragma-19.5 so that it works on file names that may contain spaces and/or...
mistachkin [Fri, 2 Mar 2012 22:41:06 +0000 (22:41 +0000)] 
Fix test pragma-19.5 so that it works on file names that may contain spaces and/or backslashes.

FossilOrigin-Name: 9aaa1ab7c63c9045fecf5e965b333cc5f28b0791

13 years agoRemove an obsolete comment from FTS3. No code changes.
drh [Fri, 2 Mar 2012 20:34:57 +0000 (20:34 +0000)] 
Remove an obsolete comment from FTS3.  No code changes.

FossilOrigin-Name: 74d224b14467d8a6915d3cf372f45e0d28708fa2

13 years agoFix problems with combining content= and languageid= in a single fts4 table.
dan [Fri, 2 Mar 2012 19:53:02 +0000 (19:53 +0000)] 
Fix problems with combining content= and languageid= in a single fts4 table.

FossilOrigin-Name: 22491e7bc38aee43819b888e04241cb6a6ef73a3

13 years agoAdd test for FTS 'rebuild' command.
dan [Fri, 2 Mar 2012 16:18:21 +0000 (16:18 +0000)] 
Add test for FTS 'rebuild' command.

FossilOrigin-Name: 181bc35731f19c3e4497ba3338c209918d34ea69

13 years agoFix the FTS 'optimize' command on multi-lingual databases.
dan [Fri, 2 Mar 2012 12:26:19 +0000 (12:26 +0000)] 
Fix the FTS 'optimize' command on multi-lingual databases.

FossilOrigin-Name: 65fa693729a336e4d905ce72e6b9ccf4faa772bd

13 years agoFix a bug in merging FTS language tables for languages other than language 0.
dan [Fri, 2 Mar 2012 11:48:50 +0000 (11:48 +0000)] 
Fix a bug in merging FTS language tables for languages other than language 0.

FossilOrigin-Name: d281cb8984c911a4c0cce2ec299e1351d8e580e4

13 years agoFix a typo in the header comment of sqlite3_commit_hook().
drh [Thu, 1 Mar 2012 21:30:44 +0000 (21:30 +0000)] 
Fix a typo in the header comment of sqlite3_commit_hook().

FossilOrigin-Name: 3784d1475b49f24e4a51450edc94aee66fd48fe4

13 years agoAdd the "languageid=" option to fts4. This code is still largely untested and alsmost...
dan [Thu, 1 Mar 2012 19:44:20 +0000 (19:44 +0000)] 
Add the "languageid=" option to fts4. This code is still largely untested and alsmost certainly buggy.

FossilOrigin-Name: bea257f70f10dd1111d79cabd1e1462dc651704d

13 years agoFix spurious errors that may occur if an empty database is opened and then initialize...
dan [Tue, 28 Feb 2012 17:57:34 +0000 (17:57 +0000)] 
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

13 years agoFix a case where an error code was being overwritten in multiplexDelete().
dan [Tue, 28 Feb 2012 11:52:12 +0000 (11:52 +0000)] 
Fix a case where an error code was being overwritten in multiplexDelete().

FossilOrigin-Name: c267893a0813beb1764071409025e178318e1ca3

13 years agoFix the xDelete implementation of the multiplexor VFS so that it correctly
drh [Mon, 27 Feb 2012 14:28:50 +0000 (14:28 +0000)] 
Fix the xDelete implementation of the multiplexor VFS so that it correctly
deletes overflow WAL files.

FossilOrigin-Name: e44e26771e5aa48f3bfa14d6db3e669b5b2a1e73

13 years agoSeparate multiplexor overflow pages for -wal and -journal files into
drh [Fri, 24 Feb 2012 16:13:55 +0000 (16:13 +0000)] 
Separate multiplexor overflow pages for -wal and -journal files into
separate namespaces when in 8+3 filename mode.

FossilOrigin-Name: d6850667ea61172ea0ebea4a22b6b306f74775fa

13 years agoFix the multiplexor so that it works with WAL mode and 8+3 filenames.
drh [Fri, 24 Feb 2012 15:57:13 +0000 (15:57 +0000)] 
Fix the multiplexor so that it works with WAL mode and 8+3 filenames.

FossilOrigin-Name: a9fcb46bc08c29aebaf3bc999f45846c3c320f68

13 years agoAdd #ifdef SQLITE_ENABLE_ZIPVFS around those bits of code that are only
drh [Fri, 24 Feb 2012 14:33:28 +0000 (14:33 +0000)] 
Add #ifdef SQLITE_ENABLE_ZIPVFS around those bits of code that are only
used by ZIPVFS.

FossilOrigin-Name: 3130275c64a60c5cfacbd11123305e6d99ea866d

13 years agoIf the SQLITE_FCNTL_PRAGMA file control returns something other than
drh [Fri, 24 Feb 2012 00:03:12 +0000 (00:03 +0000)] 
If the SQLITE_FCNTL_PRAGMA file control returns something other than
SQLITE_NOTFOUND, then skip the rest of Pragma code generation.

FossilOrigin-Name: 9e6d340f557c2f2c8a07300ac60357af9906a7fa

13 years agoA simple change that allows the SQLITE_32BIT_ROWID compile-time option to
drh [Fri, 24 Feb 2012 00:02:28 +0000 (00:02 +0000)] 
A simple change that allows the SQLITE_32BIT_ROWID compile-time option to
work better.

FossilOrigin-Name: f9df4063fbd100ce306a89fc649c1860fd801f31

13 years agoFix an obscure bug that causes a crash when parsing certain invalid SQL
drh [Thu, 23 Feb 2012 17:35:28 +0000 (17:35 +0000)] 
Fix an obscure bug that causes a crash when parsing certain invalid SQL
statements.

FossilOrigin-Name: c8c7846fb990199dcc0774a69e8257510bc36f2d

13 years agoFix a typo made inside an assert() statement in the previous commit.
dan [Thu, 23 Feb 2012 16:45:42 +0000 (16:45 +0000)] 
Fix a typo made inside an assert() statement in the previous commit.

FossilOrigin-Name: f0640615f25ebe8bf2eed0e1a0f2e309471889fe

13 years agoAdd the sqlite3PagerWalFramesize() function to pager.c. This is used by zipvfs.
dan [Thu, 23 Feb 2012 15:35:49 +0000 (15:35 +0000)] 
Add the sqlite3PagerWalFramesize() function to pager.c. This is used by zipvfs.

FossilOrigin-Name: 786e24dc56504d1958db0618e645610f2600a087

13 years agoExpose the sqlite3_stricmp() interface. Add the SQLITE_FCNTL_PRAGMA file
drh [Thu, 23 Feb 2012 14:28:46 +0000 (14:28 +0000)] 
Expose the sqlite3_stricmp() interface.  Add the SQLITE_FCNTL_PRAGMA file
control.

FossilOrigin-Name: c539cf21ef8f4eb4782790aa97a67d10ae9ffd64

13 years agoMove test logic for SQLITE_FCNTL_PRAGMA out of os_unix.c and into test_vfs.c. file-control-pragma
drh [Wed, 22 Feb 2012 20:08:49 +0000 (20:08 +0000)] 
Move test logic for SQLITE_FCNTL_PRAGMA out of os_unix.c and into test_vfs.c.

FossilOrigin-Name: c81fc40b2b584820ac7d1c3848ebeb7225d4eeeb

13 years agoIf the SQLITE_FCNTL_PRAGMA file-control returns anything other than
drh [Wed, 22 Feb 2012 19:56:17 +0000 (19:56 +0000)] 
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

13 years agoDisable the "filename" pragma implemented by os_unix.c except when compiled
drh [Wed, 22 Feb 2012 19:03:19 +0000 (19:03 +0000)] 
Disable the "filename" pragma implemented by os_unix.c except when compiled
with SQLITE_TEST.

FossilOrigin-Name: 9a1da91850b6074e5f9d18382f517eb868cad63c

13 years agoMake benign any malloc failures inside the sqlite3_file_control() call within
drh [Wed, 22 Feb 2012 18:21:20 +0000 (18:21 +0000)] 
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

13 years agoChange the SQLITE_FCNTL_PRAGMA file-control so that it can return a string
drh [Wed, 22 Feb 2012 16:58:36 +0000 (16:58 +0000)] 
Change the SQLITE_FCNTL_PRAGMA file-control so that it can return a string
value.

FossilOrigin-Name: fd8d7440277b17f57a6dc0a210f42adf1fa2dcd2

13 years agoBegin adding support for SQLITE_FCNTL_PRAGMA.
drh [Wed, 22 Feb 2012 14:45:19 +0000 (14:45 +0000)] 
Begin adding support for SQLITE_FCNTL_PRAGMA.

FossilOrigin-Name: 5be07904baf6e5b8b99ca6f4bb6ddec973e59cd4

13 years agoAvoid redefining NDEBUG if the fuzzer is included in an amalagmated source file.
drh [Tue, 21 Feb 2012 18:35:42 +0000 (18:35 +0000)] 
Avoid redefining NDEBUG if the fuzzer is included in an amalagmated source file.

FossilOrigin-Name: f8ac826f95ae6b7b981e4765d2e65b6839d0eff9

13 years agoPrevent the fuzzer from ever returning a string longer than 100 bytes.
dan [Tue, 21 Feb 2012 18:00:20 +0000 (18:00 +0000)] 
Prevent the fuzzer from ever returning a string longer than 100 bytes.

FossilOrigin-Name: 969095ca3067d60f4d3a0a4ad419541cb8b146db

13 years agoFurther fuzzer test cases. Fix a case in the fuzzer where an error code was being...
dan [Tue, 21 Feb 2012 14:11:12 +0000 (14:11 +0000)] 
Further fuzzer test cases. Fix a case in the fuzzer where an error code was being dropped.

FossilOrigin-Name: 8b77d3953f082e6fa42e42fe903ea9eddf99dd91

13 years agoAdd further test cases and minor fixes for the fuzzer.
dan [Tue, 21 Feb 2012 10:36:27 +0000 (10:36 +0000)] 
Add further test cases and minor fixes for the fuzzer.

FossilOrigin-Name: 583dde93a9176ba4fff85241bafbbe4e5a6cc95f

13 years agoUpdates to the instructions in the header comment of the fuzzer implementation.
drh [Mon, 20 Feb 2012 22:44:12 +0000 (22:44 +0000)] 
Updates to the instructions in the header comment of the fuzzer implementation.
New test cases for the fuzzer.

FossilOrigin-Name: bf1dc7907cf1a5c7e19b04fa1278b2089316c30a

13 years agoChange the way the fuzzer (test_fuzzer.c) works so that it loads its configuration...
dan [Mon, 20 Feb 2012 20:03:48 +0000 (20:03 +0000)] 
Change the way the fuzzer (test_fuzzer.c) works so that it loads its configuration from a database table.

FossilOrigin-Name: 90b7b957f8933047fd2878048dfa3ec4891988b8

13 years agoFix a case in test_fuzzer.c causing transformations from the wrong ruleset to be...
dan [Mon, 20 Feb 2012 19:36:09 +0000 (19:36 +0000)] 
Fix a case in test_fuzzer.c causing transformations from the wrong ruleset to be applied in some cases.

FossilOrigin-Name: cb5f5ebc563b8d3e47bc30b6dbb374bb91efd3ef

13 years agoIncrease the maximum ruleset id in the fuzzer from 50 to 2^31-1.
drh [Tue, 14 Feb 2012 18:56:01 +0000 (18:56 +0000)] 
Increase the maximum ruleset id in the fuzzer from 50 to 2^31-1.

FossilOrigin-Name: 760e009adc6d0fffb8e6f64c7ec283938a417a77

13 years agoEnhance the fuzzer virtual table to support multiple rule sets.
drh [Tue, 14 Feb 2012 15:34:50 +0000 (15:34 +0000)] 
Enhance the fuzzer virtual table to support multiple rule sets.

FossilOrigin-Name: a82938731b21d6166d7d482994cb065c8b725083

13 years agoMerge the non-blocking ROLLBACK changes into trunk.
drh [Mon, 13 Feb 2012 21:24:03 +0000 (21:24 +0000)] 
Merge the non-blocking ROLLBACK changes into trunk.

FossilOrigin-Name: 9c572d424a20b0585bfac358a5d1ee5276dd05ba

13 years agoFix a harmless compiler warning introduced by the previous check-in.
drh [Mon, 13 Feb 2012 20:28:15 +0000 (20:28 +0000)] 
Fix a harmless compiler warning introduced by the previous check-in.

FossilOrigin-Name: a8a042a751557d06bf04455ed7629cb29adcd87f

13 years agoOn unix, ignore the umask when creating journal files. That way, journal files
drh [Mon, 13 Feb 2012 20:16:37 +0000 (20:16 +0000)] 
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

13 years agoAdd the new SQLITE_ABORT_ROLLBACK extended error code to be returned for nonblocking-rollback
drh [Mon, 13 Feb 2012 17:01:51 +0000 (17:01 +0000)] 
Add the new SQLITE_ABORT_ROLLBACK extended error code to be returned for
statements that are cancelled due to a rollback.

FossilOrigin-Name: 549f4fd00d8325c10099b100e5202b77ee1d83ad

13 years agoChange the ROLLBACK command so that pending statements to not block it. The
drh [Mon, 13 Feb 2012 16:43:16 +0000 (16:43 +0000)] 
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

13 years agoChanges to various test scripts so that veryquick.test runs with OMIT_COMPOUND_SELECT...
dan [Mon, 13 Feb 2012 10:00:35 +0000 (10:00 +0000)] 
Changes to various test scripts so that veryquick.test runs with OMIT_COMPOUND_SELECT defined.

FossilOrigin-Name: 76bb649ee2633226324130f5898622c348f93769

13 years agoFix a typo in the type of the fchown() function in os_unix.c.
dan [Mon, 13 Feb 2012 08:50:23 +0000 (08:50 +0000)] 
Fix a typo in the type of the fchown() function in os_unix.c.

FossilOrigin-Name: bfbfe05b81919ecc3d6e7be4c24994f795f16582

13 years agoMake fchown() an overrideable system call in os_unix.c.
drh [Sat, 11 Feb 2012 23:55:15 +0000 (23:55 +0000)] 
Make fchown() an overrideable system call in os_unix.c.

FossilOrigin-Name: 98efac9630ca96ba0497c8e206dc5022612ff381

13 years agoCleanup some directories and files left by the MinGW build, even when using the MSVC...
mistachkin [Sat, 11 Feb 2012 22:19:26 +0000 (22:19 +0000)] 
Cleanup some directories and files left by the MinGW build, even when using the MSVC Makefile.

FossilOrigin-Name: 3ab89e255d1f2f8004d3256515ac43f74e57f39b

13 years agoRevise the preprocessor directives used to handle malloc.h and _msize, in order to...
mistachkin [Sat, 11 Feb 2012 21:56:59 +0000 (21:56 +0000)] 
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

13 years agoSilence GCC compiler warnings about unused return value from fchown().
drh [Sat, 11 Feb 2012 21:21:17 +0000 (21:21 +0000)] 
Silence GCC compiler warnings about unused return value from fchown().

FossilOrigin-Name: b022547389a40930cf0d2a75f5eb293acc9fbfe0

13 years agoAnother attempt to fix warnings in the randomFunc() function.
drh [Sat, 11 Feb 2012 19:53:24 +0000 (19:53 +0000)] 
Another attempt to fix warnings in the randomFunc() function.

FossilOrigin-Name: 768df4e11670ac704d96e3b601d009aaa2fd793a

13 years agoWhen creating journal files (including -wal and -shm files) try to set the
drh [Sat, 11 Feb 2012 19:23:48 +0000 (19:23 +0000)] 
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

13 years agoRemove a redundant test from the shared-memory logic in os_unix.c.
drh [Sat, 11 Feb 2012 18:51:34 +0000 (18:51 +0000)] 
Remove a redundant test from the shared-memory logic in os_unix.c.

FossilOrigin-Name: 31142ca795005bf664f34000591e6572c72652f2

13 years agoFix a warning coming from the Solaris Studio compiler.
drh [Fri, 10 Feb 2012 20:43:05 +0000 (20:43 +0000)] 
Fix a warning coming from the Solaris Studio compiler.

FossilOrigin-Name: 33294bbd1724665832464b33f865a29dc82b90f6

13 years agoDisable the ability to have multiple values in the VALUES clause of an
drh [Fri, 10 Feb 2012 17:38:58 +0000 (17:38 +0000)] 
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

13 years agoFix an important bug in the handling of EINTR in unixRead(). Never came
drh [Fri, 10 Feb 2012 03:10:27 +0000 (03:10 +0000)] 
Fix an important bug in the handling of EINTR in unixRead().  Never came
up on x86 but crashes on sparc.

FossilOrigin-Name: 1a16db0bca717a2582a48332d81854ca90d6d49b

13 years agoFix a boundary case for the integer affinity routine for non-x86 processors.
drh [Fri, 10 Feb 2012 01:25:13 +0000 (01:25 +0000)] 
Fix a boundary case for the integer affinity routine for non-x86 processors.

FossilOrigin-Name: bea05ddddf5089bac9b1aa9fe1d2cd24b069ad44

13 years agoAdd an autoconf test for malloc.h and use the results of that test to
drh [Wed, 8 Feb 2012 12:13:28 +0000 (12:13 +0000)] 
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

13 years agoCommand-line shell enhancements: Reorganize the "usage" comment so that
drh [Tue, 7 Feb 2012 14:13:50 +0000 (14:13 +0000)] 
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

13 years agoMore structure packing for smaller objects and less memory usage.
drh [Thu, 2 Feb 2012 21:02:43 +0000 (21:02 +0000)] 
More structure packing for smaller objects and less memory usage.

FossilOrigin-Name: f14e7f29ff7f2d7706dc3cdd715e103e04ba0ef1

13 years agoReduce the size of the MemPage object by about 32 bytes. Other structure
drh [Thu, 2 Feb 2012 19:37:18 +0000 (19:37 +0000)] 
Reduce the size of the MemPage object by about 32 bytes.  Other structure
size optimizations.

FossilOrigin-Name: 21695c3476804477cb378b5a643196380e7e2281

13 years agoWhen non-aggregate columns occur in an aggregate query with a single min()
drh [Thu, 2 Feb 2012 18:46:41 +0000 (18:46 +0000)] 
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

13 years agoFix a problem with NULL handling in aggregate min/max when returning output-minmax-row
drh [Thu, 2 Feb 2012 18:42:09 +0000 (18:42 +0000)] 
Fix a problem with NULL handling in aggregate min/max when returning
values from the row containing the min or max.

FossilOrigin-Name: f27c7b4fb193126548e6a620ac89664d1efa3856

13 years agoFor queries of the form "SELECT p, max(q) FROM t1", the value of column p
drh [Thu, 2 Feb 2012 17:35:43 +0000 (17:35 +0000)] 
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

13 years agoData structure cleanup. Remove unused fields. Rearrange other files for
drh [Thu, 2 Feb 2012 15:50:17 +0000 (15:50 +0000)] 
Data structure cleanup.  Remove unused fields.  Rearrange other files for
tighter packing and reduced memory usage.

FossilOrigin-Name: 0bc594e861ae1142e8c6c83f39b095e1432856bf

13 years agoSimplified array allocation in the IdList and AggInfo objects.
drh [Thu, 2 Feb 2012 03:38:30 +0000 (03:38 +0000)] 
Simplified array allocation in the IdList and AggInfo objects.

FossilOrigin-Name: 25df2a7458d025bc00380b4a0893637639f9f0d4

13 years agoFix a possible segfault after an OOM fault. This has been in the code for ages
drh [Thu, 2 Feb 2012 03:11:40 +0000 (03:11 +0000)] 
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

13 years agoRemove the nAlloc field from the ExprList object.
drh [Thu, 2 Feb 2012 01:58:08 +0000 (01:58 +0000)] 
Remove the nAlloc field from the ExprList object.

FossilOrigin-Name: 5963de303a9106b446a9423aa838bfdf6bc1e7f3

13 years agoVery small performance enhancement and reduction in size of the sqlite3_stmt
drh [Wed, 1 Feb 2012 19:03:38 +0000 (19:03 +0000)] 
Very small performance enhancement and reduction in size of the sqlite3_stmt
object.

FossilOrigin-Name: a38d57a4e5d79a0baefdf776e0e2d61423681a4f

13 years agoFix ALTER TABLE RENAME so that it correctly handles triggers that attach
drh [Wed, 1 Feb 2012 01:13:10 +0000 (01:13 +0000)] 
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

13 years agoFix a compiler warning in FTS4.
drh [Tue, 31 Jan 2012 23:34:21 +0000 (23:34 +0000)] 
Fix a compiler warning in FTS4.

FossilOrigin-Name: b4cad1ce78e6bb967c472bec5c562a24b4dfebaf

13 years agoFuther pedantic fixes to the sqlite3_uri_boolean() interface.
drh [Tue, 31 Jan 2012 14:24:47 +0000 (14:24 +0000)] 
Futher pedantic fixes to the sqlite3_uri_boolean() interface.

FossilOrigin-Name: 77b3430de69e23ba3feda3d618fe4880dd465023

13 years agoImprovements to the documentation for sqlite3_uri_boolean().
drh [Tue, 31 Jan 2012 13:35:29 +0000 (13:35 +0000)] 
Improvements to the documentation for sqlite3_uri_boolean().

FossilOrigin-Name: b0a161791d66a40cea81dfc22f1cd2e9dfd067d0

13 years agoChange a comment in test script backup.test.
dan [Tue, 31 Jan 2012 05:11:50 +0000 (05:11 +0000)] 
Change a comment in test script backup.test.

FossilOrigin-Name: 313546b4566095aedccdaa27037036129b64d438

13 years agoBring the documentation and implementation of sqlite3_uri_boolean() into
drh [Mon, 30 Jan 2012 18:40:55 +0000 (18:40 +0000)] 
Bring the documentation and implementation of sqlite3_uri_boolean() into
closer agreement.  Ticket [5f41597f7c9c]

FossilOrigin-Name: 7b053d699ffa1da9c50f1a19edb052c0f014058a

13 years agoFix compiler warnings in the TCL test harness.
drh [Mon, 30 Jan 2012 18:00:31 +0000 (18:00 +0000)] 
Fix compiler warnings in the TCL test harness.

FossilOrigin-Name: c4cd38a0c71e2887e47bebb9d10baf30802a7f13