aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Merge in the latest trunk changes, including partial indexes, the MAX_PATHdrh2013-08-02
|\ | | | | | | | | fix in os_win.c, and the sqlite3_cancel_auto_extension() API. FossilOrigin-Name: 7e1acb390770d1bd189fac7a3a7f96106f96e3a4
| * Add NEVER() and ALWAYS() macros on some unreachable yet prudent branches.drh2013-08-02
| | | | | | FossilOrigin-Name: c5c0a8ab6c222185d5f9d4321e64d9f93cd36b7d
| * Add support for partial indices.drh2013-08-02
| |\ | | | | | | FossilOrigin-Name: 478113f18b1d28606b107b5a0bed04cb90a82cf2
| | * Silently ignore database name qualifiers in CHECK constraints and indrh2013-08-02
| | | | | | | | | | | | | | | partial index WHERE clauses. FossilOrigin-Name: 2e8c845eb5011a2743dace333aa38383588f2080
| | * Fix bug in the logic that determines the end of a CREATE INDEX statement.drh2013-08-01
| | | | | | | | | | | | | | | Added a VACUUM test case that exposed the bug. FossilOrigin-Name: 2e3df0bc900c01286d3ce32c2bbf9e5293973f9b
| | * More test cases and corresponding bug fixes.drh2013-08-01
| | | | | | | | | FossilOrigin-Name: 0c8cfdfae215c95cf167f404a1d346690b28e972
| | * Fill out an initial implementation of the sqlite3ExprImpliesExpr() function.drh2013-08-01
| | | | | | | | | FossilOrigin-Name: 8e07aa2ad5579aeb82174ce5bd432ddb9c058bc1
| | * Refactor internal function name sqlite3VdbeGetValue() todrh2013-08-01
| | | | | | | | | | | | | | | sqlite3VdbeGetBoundValue(). FossilOrigin-Name: 81834c3023876487a1188390aae850cf71683701
| | * Fix the ANALYZE command to work with partial indices.drh2013-08-01
| | | | | | | | | FossilOrigin-Name: 60353124f4e965393ecd864019bdbca1999fb69e
| | * Test cases and bug fixes for the partial index logic.drh2013-08-01
| | | | | | | | | FossilOrigin-Name: 6b73ae7c123801787c8994113cbeb87ee96ba653
| | * Add the logic to keep partial indices up to date through DML statements anddrh2013-08-01
| | | | | | | | | | | | | | | | | | when new partial indices are created. This new logic is untested except to verify that it does not interfere with full indices. FossilOrigin-Name: fb9044d15ad4fd6ae4a38858c0c0e6fe9d4faa25
| | * Add logic to the query planner to only use partial indices if the WHERE clausedrh2013-07-31
| | | | | | | | | | | | | | | | | | | | | constrains the search to rows covered by the partial index. This is just infrastructure. The key routine, sqlite3ExprImpliesExpr(), is currently a no-op so that partial indices will never be used. FossilOrigin-Name: 8ca3eac111e06a1854f878a74bffe8f20eb47f1b
| | * Resolve names in CREATE INDEX WHERE clauses and detect errors. Disallowdrh2013-07-31
| | | | | | | | | | | | | | | | | | | | | expressions that contain variables, subqueries, or functions. The expression is still not used for anything, however. still unused. FossilOrigin-Name: f2aa7842c8b9df24294f09e2bde27b3f08c455c7
| | * Here begins an experimental branch for exploring the idea of a partial index.drh2013-07-31
| | | | | | | | | | | | | | | | | | This check-in is able to parse a WHERE clause on a CREATE INDEX statement, but does not actually do anythingn with that WHERE clause yet. FossilOrigin-Name: 6794b2dcb48b3507caccfc7867fc185818cf8291
| * | Fix typos in documentation for SQLITE_DBSTATUS_DEFERRED_FKS . drh2013-08-02
| | | | | | | | | | | | | | | No changes to code. FossilOrigin-Name: f3efbfcd515ad6ac833f4b26391dcc44603a96e8
| * | Fix the CREATE INDEX statement so that trying to create a TEMP index ondrh2013-08-01
| | | | | | | | | | | | | | | a non-TEMP table throws an error rather than segfaulting. FossilOrigin-Name: e3c8935f8736d00dc83644fa21d86ca7fec6d2fc
| * | Fix a potential buffer overread in sqlite3VdbeRecordCompare() when adrh2013-08-01
| | | | | | | | | | | | | | | | | | | | | serial_type specifies a field that starts in bounds but is much too large for the allocated buffer. Mostly harmless. The overread is unlikely to go more than one or two bytes past the end of the buffer. FossilOrigin-Name: e436b2f4e5c5e6b2f70e65332c0c7d618e2ef20a
| * | Make sure signed integer overflow does not cause a segfault while attemptingdrh2013-08-01
| | | | | | | | | | | | | | | | | | to read a corrupt database where the header size varint on a record is larger than the maximum 32-bit signed integer. FossilOrigin-Name: c3baca99f4580652afb2c3f73036ab83796a1557
| * | An improved method for avoiding the use of the STAT3 samples to computedrh2013-08-01
| | | | | | | | | | | | | | | | | | the estimated number of outputs when the left-most index is equality constrained. This check-in undoes the previous fix and applies a new one. FossilOrigin-Name: 127a5b776d16e1e23c5b3d454f6aaea67f1ded3a
| * | Avoid using left-most column STAT3 samples if the left-most column has andrh2013-08-01
| | | | | | | | | | | | | | | equality constrain and there are inequality constraints on the second column. FossilOrigin-Name: 31b4e63b3c30fcad22340d84d6076a306f26b49e
| * | Limit the number of memset() calls used when determining a temporary file ↵mistachkin2013-07-31
| | | | | | | | | | | | | | | name on Windows. Also, fix a harmless compiler warning. FossilOrigin-Name: 136fc2931b156f91cdd76a7a009298cdf09d826a
| * | Slight modifications to path name translation handling for Cygwin.mistachkin2013-07-31
| | | | | | | | | FossilOrigin-Name: 33ba1f4c5dc2ef8292adf17a32ade0cde0887d88
| * | Use a new error code to represent a failure to get the configured temporary ↵mistachkin2013-07-31
| | | | | | | | | | | | | | | directory on Windows. FossilOrigin-Name: c93d891b03c626b9ed01ed5ef2f246b2d4a40a64
| * | The MAX_PATH constant in windows is measured in characters, so multiple by 3drh2013-07-31
| |/ | | | | | | | | to get the number of bytes assuming worst-case UTF8 pathnames. FossilOrigin-Name: bb06e1579022c24546ac5117a99846b3c37ef59b
| * Reduce the size of the stack required by the codeOneLoopStart() function indrh2013-07-30
| | | | | | | | | | where.c. FossilOrigin-Name: eb6d4278b8516e0571269049d1eaa55066f51b1a
| * Comment and preprocessor macro cleanup.drh2013-07-29
| | | | | | FossilOrigin-Name: c0809b5e32c2ca0600098447a573e718eaeb319f
| * In the command-line shell, work around the fact that popen() and pclose()drh2013-07-25
| | | | | | | | | | are not defined in stdio.h. in C89 and later. FossilOrigin-Name: 8bcbb33fd0a970e16a920e1d35571836dbb9ba50
| * Fix a typo in main.c: SQLITE_DEAULT_AUTOMATIC_INDEX -> ↵dan2013-07-25
| | | | | | | | | | SQLITE_DEFAULT_AUTOMATIC_INDEX FossilOrigin-Name: cc78e21c7794948a187e694773735058fc7460d7
| * Enhance the progress handler so that it keeps track of the number of VDBEdrh2013-07-25
| | | | | | | | | | | | cycles across sqlite3_step() calls and issues callbacks when the cumulative instruction count reaches threshold. FossilOrigin-Name: 4698a82ef855a8e56163622283fb25317d7efdc4
| * Remove unused "codec" code from the command-line shell.drh2013-07-18
| | | | | | FossilOrigin-Name: 37abfe0c1e5da63342389c527a9f7cbe0f8392d9
| * Improved documentation for sqlite3_set_auxdata().drh2013-07-18
| | | | | | | | | | Ticket [406d3b2ef91c]. FossilOrigin-Name: 62465ecba7431e1d71e17a61f1af7dc65fe4fe97
| * Fix a typo in the previous commit.dan2013-07-18
| | | | | | FossilOrigin-Name: cd9096e64b86c8d45f6744e6eb6ced2aa1a18279
| * Ensure that all auxiliary data registered by calls to sqlite3_set_auxdata() ↵dan2013-07-18
| | | | | | | | | | is destroyed when the VM is halted. Partial fix for [406d3b2ef9]. FossilOrigin-Name: 71effa59c98d167e6e4b269e59ad5f468e664ac1
| * Fix a 8-byte alignment problem in the query planner that might causedrh2013-07-18
| | | | | | | | | | problems on sparc when compiled with -m32. FossilOrigin-Name: 5dcffa671f592ae9355628afa439ae9a2d26f0cd
| * Documentation changes to warn that sqlite3_set_auxdata() might call thedrh2013-07-18
| | | | | | | | | | | | destructor even before it returns. Also fix the regexp extension to deal with that case. Ticket [406d3b2ef91c]. FossilOrigin-Name: 7acc8cd32d593a473c9e9adaf323220a7a46480a
| * Clear the error string pointer in sqlite3_vtab object after the error stringdrh2013-07-17
| | | | | | | | | | is transferred to SQLite. Ticket [78588b938a11]. FossilOrigin-Name: 64bf8148b84e0ebb45c12b629f49bc9b316aceba
| * Make sure the sqlite3_prepare16 and sqlite3_prepare16_v2 interfaces do notdrh2013-07-16
| | | | | | | | | | read past a zero-terminator if the nBytes parameter is too large. FossilOrigin-Name: 20dba3a7fb3e7078b95af3beca948467a3af6a89
| * Enhance the query planner so that it looks at multiple solutions to ORdrh2013-07-16
| | | | | | | | | | expressions in the WHERE clause. FossilOrigin-Name: 5e19d054105fb16ff52d265d48cc87a418603f6f
| * Add the sqlite3_cancel_auto_extension(X) interface which will undo a priordrh2013-07-15
| | | | | | | | | | call to sqlite3_auto_extension(X). FossilOrigin-Name: cdce87eb889a43dafcc560d5f97ab517d0266860
| * Make sure the shell does not try to put a zero terminator on the end of andrh2013-07-12
| | | | | | | | | | unallocated zero-length string when running ".import" on an empty file. FossilOrigin-Name: 92adaee5bd31c152dbc1592f4aeb5d8da957a1ea
| * Change the description of how sqlite3_progress_handler() works so that drh2013-07-11
| | | | | | | | | | | | the N parameter is "approximate". This aligns with the current implementation. This is a documentation change only. No changes to code. FossilOrigin-Name: 7d829bdea3adcda50fbe930acb4e1ce73fd874e6
* | Merge recent trunk changes (such as the query_only PRAGMA, thedrh2013-07-11
|\| | | | | | | | | | | defer_foreign_keys PRAGMA, and the SQLITE_DBSTATUS_DEFERRED_FKS parameter to sqlite3_db_status()) into the sessions branch. FossilOrigin-Name: 8dfc0b78c38e519b64a796243ff7c0aff688ff36
| * Add the experimental "query_only" pragma.drh2013-07-11
| |\ | | | | | | FossilOrigin-Name: 6557c407983b067449deb76bc4c5248de64e07dc
| | * Experimental "PRAGMA query_only=BOOLEAN" statement that is able to turndrh2013-07-10
| | | | | | | | | | | | | | | write capabilities on and off. FossilOrigin-Name: ece960c496717a3a6c25526ef77dd76b08d607bc
| * | Add the "defer_foreign_keys" pragma and the SQLITE_DBSTATUS_DEFERRED_FKSdrh2013-07-11
| | | | | | | | | | | | | | | | | | value for sqlite3_db_status(). This is a cherry-pick of a sequence of five checkins in the sessions branch between [1d44e5d3c2] and [d39e65fe70]. FossilOrigin-Name: 527121ac3cdc96ac33ad975c227a6685a2f7e999
| * | Fix harmless compiler warnings in the progress callback logic.drh2013-07-10
| |/ | | | | FossilOrigin-Name: 908141d5bf7a9ad8f40c2332476847733eca7fdc
| * Run progress callback checks less frequently in the main VDBE evaluationdrh2013-07-10
| | | | | | | | | | | | loop. This makes up for the extra CPU cycles used to increment the cycle counter for SQLITE_STMTSTATUS_VM_STEP. FossilOrigin-Name: 3e8b02011db2f393d4850115a471709b0a88594f
* | Remove the undocumented sqlite3_foreign_key_check() API and replace it withdrh2013-07-11
| | | | | | | | | | | | sqlite3_db_status(db, SQLITE_DBSTATUS_DEFERRED_FKS, ...). Add test cases for the new functionality. FossilOrigin-Name: d39e65fe702a2e11477f2d996f77404f45763368
* | Rename the SQLITE_DeferForeignKeys macro to shorter SQLITE_DeferFKs. Movedrh2013-07-11
| | | | | | | | | | the "defer_foreign_keys" pragma into the flagPragma() routine. FossilOrigin-Name: 3a2ab74c85a40e0e7ef2d6aef6ec23837cb788e6
* | Pull in all the latest changes from trunk.drh2013-07-09
|\| | | | | FossilOrigin-Name: af3ca4c6e557e6bc92584586b5a97d9be41b0b82