aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Make sure the sqlite3_mutex.id field is initialized in the Win32drh2015-02-25
| | | | | mutex implementation, even when SQLITE_DEBUG is turned off. FossilOrigin-Name: 6d132e7a224ee68b5cefe9222944aac5760ffc20
* Add support for linenoise to shell.c.dan2015-02-25
| | | FossilOrigin-Name: f7f2598c376a27a86acc21578779c03d0016cd30
* Remove an always-false conditional from constructAutomaticIndex(). Put andrh2015-02-25
| | | | | assert() in its place to prove that the conditional is always false. FossilOrigin-Name: 3af300bf6f5bee0b51a4c1ac1dc3879771378bff
* Prevent partial indexes on the table on the left hand side of a LEFT JOIN ↵dan2015-02-24
| | | | | from being incorrectly qualified by a constraint in the ON clause of the join. This relaxes the rule introduced by the previous commit (as the partial indexes on the table on the rhs of the LEFT JOIN may now be qualified by terms within the ON clause). FossilOrigin-Name: 1d6fb43a576d335d2717e94d28385178c23c81a1
* This additional fix prevents a partial index from being qualified for use drh2015-02-24
| | | | | | if the constraint that qualifies the partial index is part of the ON clause of a LEFT JOIN. FossilOrigin-Name: 1a1516e4da26dcee35e6fbb6604ce252faf3d116
* Make sure partial automatic indexes are not based on terms in the ON clausedrh2015-02-24
| | | | | of a LEFT JOIN. Fix for ticket [2326c258d02ead3]. FossilOrigin-Name: c0f4e308a508183b72ceda447dc3ac778cb85b9f
* Update document on sqlite3_mprintf() and related functions. Discuss thedrh2015-02-21
| | | | | | %w format and point out that obscure ANSI-C formats are not supported. No changes to code. FossilOrigin-Name: f8917ba4d917bc762b3b252466ab72a8a70dc0d8
* Fix a compiler warning associated with USE_PREAD64.drh2015-02-21
| | | FossilOrigin-Name: c299e55a661c04f71ab43cb8aed04f8ece6e0567
* Fix over-length source code lines in os_unix.c.drh2015-02-21
| | | FossilOrigin-Name: 7560a9fa50236ecaa0617f1ab5bb5662f4a61c72
* Keep track of the optimal number of reserved bytes (by looking at reservedrh2015-02-21
| | | | | | | byte requests in calls to sqlite3BtreeSetPageSize()) and then change the reserve byte count to the optimal when doing a VACUUM or when using the backup API. FossilOrigin-Name: 28c2b726285ea88b334acfd6390a057d2d244838
* Fix errors in the EBCDIC upper-case to lower-case translation table.drh2015-02-19
| | | FossilOrigin-Name: 905009f6723040d4da4776b6fd07e83c628dea2b
* Remove a redundant call to statfs() in the xOpen() method of the unix VFS.drh2015-02-19
| | | | | Also fix an unused local variable warning. FossilOrigin-Name: 8215727dda384351765ab1d5c53ea80775b4ec65
* Move the os_unix.c file closer to apple-osx.drh2015-02-19
| | | FossilOrigin-Name: 81f242e338d6122e27aad86986bfd140012c6582
* First small steps toward brining trunk and apple-osx closer together.drh2015-02-19
| | | FossilOrigin-Name: 28284ccc0d7301503f6d2d7bee9093738d52e331
* Improvements to SQLITE_ENABLE_API_ARMOR.drh2015-02-13
| | | FossilOrigin-Name: 823ad40ccb5b51aaa0d5a48da63b465df9d0649a
* Make sure the prepared statement auto-resets on extended error codesdrh2015-02-13
| | | | | | of SQLITE_BUSY and SQLITE_LOCKED even when compiled using SQLITE_OMIT_AUTORESET. FossilOrigin-Name: 3c6ca414879feb1f5d31d5fd95a1737530aca624
* For the shell '.import' command, make sure the last column value present is ↵mistachkin2015-02-12
| | | | | considered before NULL filling any missing ones. FossilOrigin-Name: 9c5bcad1f7d04c16f3ec7fc483280059ae93961b
* Propagate COLLATE operators upward through function calls and CASE operations.drh2015-02-09
|\ | | | | | | | | | | | | And do not flatten an aggregate subquery into a query that uses other subqueries. Fixes for tickets [ca0d20b6cdddec5] and [2f7170d73bf9], respectively. FossilOrigin-Name: 24e78b8d65734a6a8ae21a20542cd1839e756fb1
| * Propagate the COLLATE operator upward through function calls.drh2015-02-09
| | | | | | | | | | Initial fix for ticket [ca0d20b6cdddec5e8]. FossilOrigin-Name: c053448a55f9d030e8ffe88cf4fc14ada7f6ec19
| * Disable the query flattener for aggregate subqueries if the parent querydrh2015-02-09
|/ | | | | | | uses other subqueries in its result set or WHERE clause or ORDER BY clause. Preliminary fix for ticket [2f7170d73bf9abf8]. However it still contains a defect similar to the COLLATE problem of [ca0d20b6cddd]. FossilOrigin-Name: 0b7d65e3fda676d193347cb782854c28a48252af
* Rename the internal "EP_Constant" bitmask to a less misleading "EP_ConstFunc".drh2015-02-09
| | | FossilOrigin-Name: 4ef7ceced2b0000d21f7f8014384c04a0e4661d3
* In selecttrace 0x100 mode, show the parse tree after name resolution insteaddrh2015-02-09
| | | | | | of before flattening, so that it is always seen even if flattening does not occur. Also: add the hex pointer value to the top of each SELECT tree. FossilOrigin-Name: aa093fef2d2a7e26d987b46654963e4d7e66d444
* In selecttrace mode 0x100, show a complete parse-tree both before and afterdrh2015-02-09
| | | | | query flattening. This is a change to debugging code only. FossilOrigin-Name: b3c6b8a3c1075d2a87cef68f061d6a0098e6d8d0
* Fix over-length source code lines in resolver.c. No logic changes.drh2015-02-09
| | | FossilOrigin-Name: c12edb85076d0832e3a0abbbba4d07f3cb5d7f0e
* Fix potential 32-bit integer overflow problems on the offset and lengthdrh2015-02-07
| | | | | | | parameters to sqlite3_blob_read() and sqlite3_blob_write(). For sqlite3_blob_open(), make sure the *ppBlob return parameter is zeroed if the interface fails with SQLITE_MISUSE. FossilOrigin-Name: 5df02f50f8348dfde4fc15126abc7b7ef7803e69
* Change the name of ".info" to ".dbinfo" and add an optional second argumentdrh2015-02-06
| | | | | | which is the ATTACH-ed DB about which information is provided. Provide ".indexes" as an alternative name to the legacy ".indices" command. FossilOrigin-Name: 0f65a7e2e09f801b66897479d501607caeae4abf
* Add the ".info" command to the shell.drh2015-02-06
| | | FossilOrigin-Name: 0a3100a7f264ffce6078c35e341f2f0af6c09fbb
* Merge all recent trunk changes, including the movement of the pragmadrh2015-02-04
|\ | | | | | | | | table into the separate pragma.h header file. FossilOrigin-Name: 3af19f84446ba5fc1ed754d0d73f6a6d7fb2f365
| * Fix a missing mutex in SQLITE_TESTCTRL_IMPOSTER.drh2015-02-04
| | | | | | FossilOrigin-Name: 71691c4be54b9ac6a35e35013f939b7d6fd4e6b8
| * Break out the (script-generated) pragma parsing tables into a separate file,drh2015-02-02
| | | | | | | | | | pragma.h, to make editing easier. FossilOrigin-Name: 32c0325bcb083fe3f0f0cfe999d00f754e15299e
* | Add the "index_xinfo" pragma. Add new columns to the "index_info" anddrh2015-01-31
|/ | | | | "index_list" pragmas. FossilOrigin-Name: 30f51d7b3b292191e8351223242e708bb7f3dfa6
* Change SQLITE_TESTCTRL_INITMODE to SQLITE_TESTCTRL_IMPOSTER. Revise the orderdrh2015-01-30
| | | | | | of parameters. Give it the ability to reset the schema parse table so that imposter tables can be erased. FossilOrigin-Name: 42d5601739c90434e5adfda8fa99ef7b903877db
* Added SQLITE_TESTCTRL_INITMODE for improved testability.drh2015-01-30
|\ | | | | FossilOrigin-Name: 98e029134dc1300d3ecb48b41b5107ec69ba85db
| * Add a few simple test cases for SQLITE_TESTCTRL_INITMODE - cases whichdrh2015-01-30
| | | | | | | | | | also test PRAGMA integrity_check. FossilOrigin-Name: 3a6e2afe408d2b0c8166d00def2048568169d87a
| * Add the INITMODE test-control.drh2015-01-29
| | | | | | FossilOrigin-Name: 5940af8e7872209ce41feb958643b23f7e55d258
* | Ensure that "PRAGMA wal_checkpoint = TRUNCATE|FULL|RESTART" block on other ↵dan2015-01-29
|/ | | | | connections and truncate the database file as required even if the entire wal file has already been checkpointed. FossilOrigin-Name: 53429689d4fcf472edbc89cc50b5e69ba3270634
* Fix harmless compiler warnings.mistachkin2015-01-27
| | | FossilOrigin-Name: e7d2ec048c88237c124fbe598f8f7e950d43d90f
* Fix a (almost always harmless) read past the end of a memory allocationdrh2015-01-27
| | | | | | | that comes about because the Expr.pTab field is checked on an EXPR_REDUCEDSIZE Expr object before checking the Expr.op field to know that the Expr.pTab field is meaningless. FossilOrigin-Name: e098de691002a78270540430b0df1e120582b53f
* The va_list argument cannot take on a NULL value and cannot be compared withdrh2015-01-25
| | | | | NULL on some platforms (ex: ARM). So do not attempt to do so. FossilOrigin-Name: 1964e656b4b420e8d6a4ba12d270ed02db292b88
* In the command-line shell, make sure stderr is unbuffered so that it drh2015-01-24
| | | | | | | automatically flushes. This has always been the case already for unix and on Windows when the output is a console, but apparently was not the case on Windows when the output was a pipe. FossilOrigin-Name: 2a9ea9b4a7d6904efb2112e32efe84123dfa75d7
* Make sure errors in the FROM clause of a SELECT cause analysis to abortdrh2015-01-22
| | | | | | and unwind the stack before those errors have a chance to mischief in the "*" column-name wildcard expander. Fix for ticket [32b63d542433ca67]. FossilOrigin-Name: 9e6eae660a02303fd140dac5fbff82364f4120cd
* Change the undocumented ".selecttrace" command in the shell to acceptdrh2015-01-22
| | | | | an integer bitmask rather than a boolean. FossilOrigin-Name: bd63bf882c5a925f921adc9cf7425d2e7950f0b2
* Fix an assert() that may fail following an OOM error.dan2015-01-21
| | | FossilOrigin-Name: 5f592359d6d41708da3b3ac9d987a1631bfa3d88
* Fix harmless compiler warning seen with MSVC.mistachkin2015-01-21
| | | FossilOrigin-Name: 78c2e62bb4c529595aaaf2e1f5f26387ad977b1b
* Enhancements to entropy generation for the Win32 VFS.mistachkin2015-01-21
| | | FossilOrigin-Name: 26190b3c63e18f3116deeb59a58d9b5de48e8eea
* Fix another instance of an incorrect value for KeyInfo.nXField on adrh2015-01-20
| | | | | sorting index. Ticket [f97c4637102a3ae72b79]. FossilOrigin-Name: 0077f64510f9b9ce90032df2696cb242d097ab84
* Ensure that the KeyInfo.nXField value for ephemeral tables used to implementdrh2015-01-19
|\ | | | | | | | | | | | | | | | | ORDER BY or GROUP BY clauses is set correctly, so that the sqlite3VdbeFindCompare() routine can choose the correct comparison function. Add assert() statements to the high-speed comparison functions to detect cases where they are inappropriately chosen. Fix for ticket [f97c4637102a3ae72b7911]. FossilOrigin-Name: f7201bb0cdc9e1425c68599b32434de2231dca36
| * Make sure that the KeyInfo.nXField value of ephermeral tables used fordrh2015-01-19
| | | | | | | | | | | | ORDER BY and GROUP BY is set correctly, so that the correct comparison function can be choosen by sqlite3VdbeFindCompare(). FossilOrigin-Name: c16bae5e699b851f4ca8414c5dfa5370b18f69f0
| * Fix the assert() of the previous check-in so that it works even whendrh2015-01-19
| | | | | | | | | | compiled without SQLITE_DEBUG. FossilOrigin-Name: 38868f845e1ad4d61354ab1ad39dd19e3e07c7fd
| * An alternative way of implementing the assert() that verifies the relativedrh2015-01-19
| | | | | | | | | | | | | | | | values of KeyInfo.nField+KeyInfo.nXField and the number of columns in a record. This version of the assert() only fires when the high-speed comparison routines are used - which is to say it only fires when the constraint actually matters. FossilOrigin-Name: bf744b4908b096f301565f6a4ea8d56667c1d76a