aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Reverse commit (6315) for now. (CVS 6317)danielk19772009-02-24
| | | FossilOrigin-Name: 0e7c369c23a8767b4d3e5cdd47c14716992fb71a
* Optimize queries of the form "SELECT count(*) FROM <tbl>" by adding a ↵danielk19772009-02-24
| | | | | sqlite3BtreeCount() interface to the btree layer. (CVS 6316) FossilOrigin-Name: d4aa6593183224b6868a322511511c0bbf63b598
* Scan an index instead of a table for "SELECT count(*) FROM <tbl>" queries. ↵danielk19772009-02-23
| | | | | Because an index is usually smaller than a table on disk, this saves some IO. (CVS 6315) FossilOrigin-Name: 294ba6f743c9132dce0e73da480bd3c2071e7239
* Add the reverse_unordered_selects pragma. (CVS 6314)drh2009-02-23
| | | FossilOrigin-Name: bc078e0007b6c3dc07722820bb53798b643212b3
* Ensure the return value of sqlite3_errmsg16() is aligned on a 2-byte ↵danielk19772009-02-23
| | | | | boundary. Ticket #3665. (CVS 6313) FossilOrigin-Name: 9b8acf8319ec760713773407a4d5a33dea8d75e8
* Instead of using SetNumColumns, specify the number of columns in a table or ↵danielk19772009-02-20
| | | | | index using the P4 argument. (CVS 6310) FossilOrigin-Name: e43ed649630cbc49a6f2a25a26a4a6b5fce84c48
* Add a count parameter to the OP_Variable opcode and use it to simplifydrh2009-02-20
| | | | | | prepared statements that copy consecutive unnamed parameters into consecutive registers (a common case). (CVS 6309) FossilOrigin-Name: 48b77b04935d8942eb22f0c061f3bc5e99bbd7db
* Add the OP_HaltIfNull opcode and use it to simplify prepared statementsdrh2009-02-20
| | | | | for INSERTs and UPDATEs of tables with NOT NULL columns. (CVS 6308) FossilOrigin-Name: feccad8d0d05925ce67856d40ffe1bc7054168a0
* Reuse space left-over opcode space at the end of the VDBE opcode array todrh2009-02-20
| | | | | | store memory cells, VDBE cursors, and other content needed by the VDBE. This reduces the memory required by a prepared statement. (CVS 6307) FossilOrigin-Name: 58a1809257ccfb7d9112a35f79ca2f82b3daa878
* Remove code in malloc.c that was already commented out using #if 0. (CVS 6306)drh2009-02-19
| | | FossilOrigin-Name: e1ad757ec0abead25265f9251c954d2497bccc06
* Changes to reduce the heap space consumed by triggers, views and tables in ↵danielk19772009-02-19
| | | | | the in-memory representation of the schema. Also to reduce the space used by prepared statements slightly. (CVS 6305) FossilOrigin-Name: d9f6ffbc5ea090ba0daac571fc9a6c68b9c864e4
* Make sure the auto_vacuum=INCREMENTAL setting is preserved across a VACUUM.drh2009-02-18
| | | | | Ticket #3663. (CVS 6304) FossilOrigin-Name: ded04f12f41504e4a3ecd5164f0d4cbbde5e16f7
* Move the text of C-API requirements out of the sqlite.h.in source file anddrh2009-02-18
| | | | | | into separate files in the "docsrc" CM system. Comment changes only - no changes to code. (CVS 6303) FossilOrigin-Name: 419eb48b6b4238526850091eef28af503b6c4579
* Add tests to double-check that nothing within SQLite ever tries to allocatedrh2009-02-17
| | | | | | | amounts of memory that are close to the maximum signed integer, leading to an integer overflow within malloc(). This is not currently a problem. The extra tests just insure it never becomes a problem. (CVS 6298) FossilOrigin-Name: f6ba7bb9152cffc9f67dfa7de12e36a3244b7e03
* Initialize an uninitialized buffer to silence a valgrind warning during a ↵danielk19772009-02-17
| | | | | VACUUM operation. (CVS 6297) FossilOrigin-Name: 8c61968b33dd753618589cb3f859984223161d64
* Allow sqlite3_shutdown() to be called by a process before ↵danielk19772009-02-17
| | | | | sqlite3_initialize() is. Prior to this commit such a call could segfault. (CVS 6296) FossilOrigin-Name: 79431c58d964d6057c7f42f7c1df74f3df4493eb
* Make sure result variables are initialized or unused following a failuredrh2009-02-17
| | | | | of the xFullPathname VFS interface. Problem detected by valgrind. (CVS 6295) FossilOrigin-Name: 59a4755185f0e51699cd020ae67d279bee45de1c
* Changes to remove some compiler warnings from MSVC. (CVS 6294)shane2009-02-16
| | | FossilOrigin-Name: 68f15442e8db364952d30daf4ce60c6b938f5906
* Fix a compiler warning in backup.c. (CVS 6293)drh2009-02-16
| | | FossilOrigin-Name: 82222fbf5d5a085ce3e2c172c648a4c6d9750626
* Make sure OOM errors in the ANALYSIS loader get reported back out todrh2009-02-13
| | | | | high-level layers. Strange behavior can result otherwise. (CVS 6292) FossilOrigin-Name: 88a6355cd65ddb319dbc27b5248c664dbf599778
* Correctly handle attempts to add a UNIQUE or PRIMARY KEY column usingdrh2009-02-13
| | | | | the ALTER TABLE statement. Ticket #3651. (CVS 6291) FossilOrigin-Name: dd179ff2986bc2a86d70bbe927fd0e123e17d398
* Add additional cross-references from API documentation to other documents.drh2009-02-12
| | | | | Comment changes only; no changes to code. (CVS 6290) FossilOrigin-Name: 97203a0ad7a7ddfae04daf99558389b0589fc170
* Fix some edge cases with backing up databases that are exactly PENDING_BYTE ↵danielk19772009-02-12
| | | | | bytes in size, or just slightly larger. (CVS 6288) FossilOrigin-Name: 2fc450e8e60248d6111d0b0d2b8f2344f5b89bca
* Fix a case where during a rollback triggered by an IO or malloc error an ↵danielk19772009-02-12
| | | | | unjournalled region of the database could be written to (with it's original data). This was causing an assert in test_journal.c to fail. Add a test case in ioerr2.test to trigger this case. (CVS 6286) FossilOrigin-Name: 315a6692f9a03a470871cce4f74567683546f343
* Continuing documentation refinements. Comment changes only. (CVS 6284)drh2009-02-11
| | | FossilOrigin-Name: 83e8308435be8c954fe7a347a64f28abcb81437b
* Add hyperlinks from sqlite3_limit() documention to the limits.html page.drh2009-02-11
| | | | | Comment changes only - no changes to code. (CVS 6282) FossilOrigin-Name: f0189ec8c9b5d1dfe1f5d93746cc7b5703a80de5
* Fix the crashtest infrastructure so that it doesn't trigger the "don't write ↵danielk19772009-02-11
| | | | | to the locking region" assert in os_unix.c. (CVS 6281) FossilOrigin-Name: b7fd4615cd41179484bd44d2f4bd7aef04977911
* Modify the test_journal.c code to (1) account for the backup code writing to ↵danielk19772009-02-11
| | | | | parts of the pending-byte page when changing a databases page-size, and (2) to avoid reading from the pending-byte page and triggering the assert in os_unix.c. Changes to test code only. (CVS 6280) FossilOrigin-Name: 4879621658c2c785ab7b12dbae780901496d3a78
* In test_mutex.c, zero the global structure staticly instead of in ↵danielk19772009-02-11
| | | | | Sqlitetest_mutex_Init(). This is because Sqlitetest_mutex_Init() is now called by each thread during thread tests ((6193)). Test code changes only. (CVS 6279) FossilOrigin-Name: 8b318b9385d0542ca56750b901c0c6b7d05ca634
* For the "onefile" demo, pass SQLITE_OPEN_TEMP_DB instead of MAIN_DB to the ↵danielk19772009-02-10
| | | | | OS layer when opening the single file. This is to work around the assert() in os_unix.c that tests that the locking region is not written to. (CVS 6278) FossilOrigin-Name: 2da076a2c1663e916dc50e5e1679be216922dfc5
* Prevent code in test6.c from reading the 512 byte locking region (the ↵danielk19772009-02-10
| | | | | PENDING_BYTE page) of a database file. Doing so triggers an assert failure in os_unix.c. (CVS 6276) FossilOrigin-Name: 2a6a43169220fab5a15a786e2a464b90cb893179
* Create links from backup API documentation to the backup application note.drh2009-02-10
| | | | | Comment changes only - no changes to code. (CVS 6275) FossilOrigin-Name: 85de23fb4e63e5c71480c4c34efec331e774d7fb
* Reenable triggering vdbe tracing by creating file-system entries. Add a ↵danielk19772009-02-10
| | | | | (redundant) test that modifying the temp schema expires all prepared statements. (CVS 6274) FossilOrigin-Name: f6590dac4612d0d05105fa820e8fcb80b5907a40
* Do not always open a transaction on the temp database when writing to the ↵danielk19772009-02-10
| | | | | main or another attached database. (CVS 6273) FossilOrigin-Name: f76b0b8129657eace0a933ac1988b472d5e79c98
* Fix a problem in backup.c causing OsTruncate() to be called with an argument ↵danielk19772009-02-09
| | | | | larger than the current file-size. (CVS 6271) FossilOrigin-Name: b34bde80c7e2028baf7ba2ff26e587a63a170f3d
* Add assert() statements to os_unix.c which fire if there is a read ordrh2009-02-09
| | | | | write for the locking region of a database file. (CVS 6270) FossilOrigin-Name: 93e792ffa88ba2e8422d041f36b70d9b2e220da2
* Better error message when DISTINCT is used on an aggregate function thatdrh2009-02-09
| | | | | takes two or more arguments. Ticket #3641. (CVS 6269) FossilOrigin-Name: e20bf384668bcde7c2f2152ca88e28cf65a02679
* Ignore the return structure of and F_GETLK fcntl() call on djgpp. Fix for ↵danielk19772009-02-09
| | | | | #3642. (CVS 6268) FossilOrigin-Name: 8227af3463ded1c52d0a16c63b8dbc516eab57f0
* Changes to the backup API: (1) if a negative number is passed as the second ↵danielk19772009-02-06
| | | | | argument to backup_step(), this is interpreted as "copy all remaining pages" and (2) if backup_finish() is called after backup_step() fails with a BUSY or LOCKED error, then this error is also returned by backup_finish() (same handling as for other errors encountered by backup_step()). (CVS 6266) FossilOrigin-Name: 9b8c8b18cf6b7d44d5fd64760537bc030097756b
* Fix the declaration of sqlite3PendingByte so that it works with thedrh2009-02-05
| | | | | amalgamation. (CVS 6264) FossilOrigin-Name: 193c871f3d16ce982040334c543610d330117bd5
* Make the pending byte adjustable via sqlite3_test_control() on all builds,drh2009-02-05
| | | | | not just on test builds. (CVS 6263) FossilOrigin-Name: e8f192e2a93350a136d86bd9caceff65f52f3513
* Fixed error detection in winTrucate() in os_win.c. Windows version only. ↵shane2009-02-05
| | | | | Ticket #3640. (CVS 6262) FossilOrigin-Name: 82e03f1b5481c6fe5e94976f086e8fe8c99881af
* Improved overrun detection in mem2.c (SQLITE_MEMDEBUG). Previously was only ↵shane2009-02-05
| | | | | checking up to 3 extra bytes allocated due to rounding. (CVS 6261) FossilOrigin-Name: a6fe3d6b02734b23fe067a373c0232024a782a6c
* Add "backup" and "restore" methods to the TCL interfaces and test casesdrh2009-02-04
| | | | | to exercise those methods. (CVS 6260) FossilOrigin-Name: e420a3cedc7ee086a77cd719f6b9fb85415eb5f3
* Add ".backup" and ".restore" commands to the CLI - implemented using thedrh2009-02-04
| | | | | new backup API. (CVS 6259) FossilOrigin-Name: 003e1d62189e9e37f901d86a696cfccd22bd3b38
* If the truncate operation fails in journalmode=TRUNCATE, do not fall backdrh2009-02-04
| | | | | to overwriting the journal header with zeros. Simply fail the operation. (CVS 6257) FossilOrigin-Name: d4af60e52a12262ad0194908e68a386c719fe177
* Simplify wording of backup API error message. Decapitalize some otherdrh2009-02-04
| | | | | error messages. (CVS 6256) FossilOrigin-Name: f92405afb649b698b735b423cd9195d4f8f137c9
* The sqlite3_backup_init() interface must lock the destination in case itdrh2009-02-04
| | | | | needs to change the error message. (CVS 6255) FossilOrigin-Name: 572378d3a29c7d55fa4a15df14800c26d6c563a1
* Fix a bug in test_malloc.c whereby running multi-threaded test cases could ↵danielk19772009-02-04
| | | | | cause subsequent OOM tests to fail. (CVS 6254) FossilOrigin-Name: 03ea9e591337a3c442080ee7cd01cc4ee85c1357
* Do not attempt to use the sub-journal file descriptor if it is not opened ↵danielk19772009-02-04
| | | | | (as in journal_mode=off mode). Ticket #3636. (CVS 6252) FossilOrigin-Name: 20bd76055463c85f62a450e368f4bcf7d2215f94