aboutsummaryrefslogtreecommitdiff
path: root/src/attach.c
Commit message (Collapse)AuthorAge
...
* Code simplifications to facilitate coverage testing following the recentdrh2009-05-31
| | | | | changes to the Expr object. (CVS 6697) FossilOrigin-Name: ee9a144d448a76f29c3ca03851c1aeef539068e2
* Additional refinements to Expr handling. Restore compression of triggerdrh2009-05-28
| | | | | | expressions. Change Expr.zToken to Expr.u.zToken and added Expr.u.iValue. Remove an unnecessary ExprDup from CHECK constraint processing. And so forth. (CVS 6682) FossilOrigin-Name: 4ac2bdfbb4230b6ceaae87e738fa61036bbe03cb
* Simplifications to the Expr object: Remove Expr.span completely and convertdrh2009-05-27
| | | | | | Expr.token into a char* Expr.zToken. Also simplify the Token object by removing the Token.dyn and Token.quoted fields. (CVS 6681) FossilOrigin-Name: 7cb1c3ba0759539cb035978fdaff6316775986f3
* Remove a NEVER() clause from a condition that is true at least once when ↵danielk19772009-05-01
| | | | | running attachmalloc.test. (CVS 6585) FossilOrigin-Name: 514efc7312d725c3fe35741e8c000526f3bdb3a6
* Disable an always-false test in the attach.c module. (CVS 6581)drh2009-04-30
| | | FossilOrigin-Name: 92b69481bd0eedf06599c40623b38a6f4990010a
* Disallow attaching the same database multiple times to the same db connectiondrh2009-04-30
| | | | | in shared cache mode, since doing so leads to deadlock. (CVS 6578) FossilOrigin-Name: 715f14f1dcaf604d4794bf3e18e245d4f8c5d5a9
* Fix a memory leak introduced in the previous check-in. (CVS 6574)drh2009-04-30
| | | FossilOrigin-Name: f082bf36051fef92ddda0339777a00cd1f0ba988
* Take care not to leave a zombie attached database if the attachment failsdrh2009-04-30
| | | | | | due to an encoding mismatch. Update attach logic to always use dynamically allocated error message strings. (CVS 6573) FossilOrigin-Name: a6cb4002ada311b56fa2b7430b98b9a0fa698a01
* Remove always-true tests from attach.c. In btree.c, always test the returndrh2009-04-30
| | | | | from sqlite3PagerSetPagesize() since it might return SQLITE_NOMEM. (CVS 6572) FossilOrigin-Name: 8bf60b24ffcf6ac15f41eaa7f976b810e0c66734
* Minor refactoring of the expression-compaction logic for clarity ofdrh2009-04-08
| | | | | | presentation. New comments added. The EXPRDUP_DISTINCTSPAN flag is removed as obsolete. (CVS 6470) FossilOrigin-Name: 44ded2ea67374f187a111df69c3f51f866735400
* 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
* Commit first version of the 'backup' feature. (CVS 6241)danielk19772009-02-03
| | | FossilOrigin-Name: 663479b417fc06ba1790a544f28694f8797cee57
* Add explicit casts to silence nuisance warnings from VC++. (CVS 6004)drh2008-12-10
| | | FossilOrigin-Name: da1cbfa766f7f379c01f4ac9c1210462d8d7c590
* Changes to avoid "unused parameter" compiler warnings. (CVS 5921)danielk19772008-11-19
| | | FossilOrigin-Name: 88134322c36b41304aaeef99c39b4ef5b495ca3b
* Avoid exposing internal interfaces sqlite_attach() and sqlite_detach() as ↵danielk19772008-10-28
| | | | | SQL scalar functions. Ticket #3466. (CVS 5846) FossilOrigin-Name: 679c0b35aaa1ea488a205cc03802e7078a2bcf29
* Refactor the name resolution procedures in the code generator. (CVS 5569)drh2008-08-20
| | | FossilOrigin-Name: daf730d1defa78fb8b80a78f9108ac35a13e09f6
* Implement the "lookaside" memory allocation cache. Use of this cache makesdrh2008-07-28
| | | | | | the speed1.test script run about 15% faster. Added new interfaces to control the cache. (CVS 5488) FossilOrigin-Name: e48f9697e9fea339e150ddc32940760027dd07d9
* Continuing work on the new memory allocation subsystem.drh2008-06-15
| | | | | | Added routines for temporary memory allocation. Right the btree balance mechanism to only do one temporary allocation at a time. (CVS 5220) FossilOrigin-Name: 65fe7b62cfe7d11cd667681a64c96fe7b2fe5685
* Add the journal_mode pragma. This is currently just syntax - it is notdrh2008-04-17
| | | | | operational. (CVS 5024) FossilOrigin-Name: 8eaa0c71023ac428f6f9f8091341584caa773ab9
* Initial implementation of per-connection limits and the sqlite3_limit() API.drh2008-03-20
| | | | | | The sqllimits1.test script crashes. SQLITE_LIMIT_PAGE_COUNT and SQLITE_LIMIT_VDBE_OP are currently ignored. (CVS 4897) FossilOrigin-Name: 60c77882b2de9f6a45f8bd87c9c6a0cc613f8373
* Add a new interface, sqlite3_context_db_handle(), that returns the databasedrh2008-03-19
| | | | | connection pointer for an application-defined function. (CVS 4889) FossilOrigin-Name: 54c55cae556af5a16c0ce8be1a96d2932db80ad8
* Where possible, avoid freeing buffers allocated for vdbe memory cells in ↵danielk19772008-02-13
| | | | | case they can be reused. (CVS 4783) FossilOrigin-Name: 990237e27e417aff3dbf05784b716c21f3761a3a
* Add the sqlite3_result_error_code() application interface. Use it in thedrh2008-02-06
| | | | | | ATTACH function so that a failed attach returns a proper error code. Ticket #2914. (CVS 4775) FossilOrigin-Name: c24616204307936d03d39d2ef0fe6856113f6977
* Make sqlite3SafetyOn() and sqlite3SafetyOff() macros which disappear whendrh2008-01-23
| | | | | compiling without -DSQLITE_DEBUG=1. (CVS 4744) FossilOrigin-Name: 5375ad6b4b652f388469b0ce4e8e78b3f49169bd
* Registerification of the VDBE is complete. The operand stack has beendrh2008-01-17
| | | | | removed from the code. All instructions operate out of registers only. (CVS 4718) FossilOrigin-Name: 706b41b70bd1e2030e6fa44358c38a26c5cf0985
* Continuing work toward converting the VM to a register machine. (CVS 4708)drh2008-01-12
| | | FossilOrigin-Name: 426f31ecdd05d1179a2e49c2ca1666011cede9c6
* All essential opcodes can now operate out of registers and completelydrh2008-01-09
| | | | | | | avoid the stack. Many still optionally use the stack to support legacy code generation, but the stack is not required. The next step is to update all code generation to avoid using the stack. (CVS 4700) FossilOrigin-Name: e3cf1c1c114bcda8fe577beb5ee55b4a651b96db
* Change the sqlite3ExprCode() function so that callers can request thatdrh2008-01-03
| | | | | the result of the expression be left on the stack or in a register. (CVS 4673) FossilOrigin-Name: 61bfb77c4267b99ac8a8ef49355bcbc395a1a37b
* Refactoring the VM. The P3 parameter is changed to P4. A P5 parameter isdrh2008-01-03
| | | | | | added (though not currently used.) Add routines sqlite3VdbeAddOpX() where X is one of 0, 1, 2, 3, or 4. (CVS 4660) FossilOrigin-Name: 027875e4d4c4bd7686dc880c6917a968049b2fec
* Fix a race condition that can occur when reloading the database schema in ↵danielk19772007-12-27
| | | | | shared-cache mode. (CVS 4643) FossilOrigin-Name: b37babef913fcceae7f0bd461a3105e184518d62
* Add automatic recovery from the pager "error-state". Also add a new error ↵danielk19772007-10-03
| | | | | code - SQLITE_IOERR_NOMEM. (CVS 4454) FossilOrigin-Name: 12eca32a6a3d68d5b20eed03afdffe7599e66014
* Honor the SQLITE_OPEN_ flags passed into sqlite3_open_v2(). Somedrh2007-09-03
| | | | | test cases added but more are needed. Ticket #2616. (CVS 4376) FossilOrigin-Name: 020a2b10d408f51d4ef3211c5f701f5378fd4625
* Half-way through a major refactoring of the memory allocation.drh2007-08-16
| | | | | | I have not even attempted to compile so I am certain there are countless errors. (CVS 4231) FossilOrigin-Name: deb7ecd65f7b83eaf0ba610eeef3b0ede61db1c3
* Fix a problem with strange expressions being fed to an ATTACH or DETACHdrh2007-05-09
| | | | | statement. (CVS 3965) FossilOrigin-Name: 0c91dc9ee0c5d441a7789b631476515260cb887f
* Begin implementing a new system of upper bounds on the capabilitiesdrh2007-05-08
| | | | | | | of SQLite. By clearly defining the upper bounds, we make those upper bounds explicitly testable. This check-in is just infrastructure. The upper bounds are not yet enforced. (CVS 3941) FossilOrigin-Name: 93b623b232a43f78d2c90bfa2389dd5b28ad7280
* Eliminate all uses of sprintf() and strcpy(). These were not beingdrh2007-05-04
| | | | | | misused. But getting rid of them removes a library dependency. And it avoids warnings from the OpenBSD compiler. Ticket #2336. (CVS 3916) FossilOrigin-Name: ba4845b32bdf38e623c4f7246e6e327715bbba4b
* Fix the prototype of the CodecAttach function in attach.c. (CVS 3731)drh2007-03-27
| | | FossilOrigin-Name: 902413e81b1ae8bee09987c798622a55ab2a1504
* The -DSQLITE_OMIT_ATTACH=1 option now omits both the ATTACH and VACUUM drh2007-03-27
| | | | | | | commands. Ticket #2268. The regression test suite depends on both of these commands and will not run if compiled with this option. (CVS 3727) FossilOrigin-Name: cbebfb89603044e48b3a87b79d1eefbbc5b4c8a5
* Changes for exclusive access mode. There are still some bugs. (CVS 3712)danielk19772007-03-24
| | | FossilOrigin-Name: b6c700370be29db2b974f9abd719c3e56abf8058
* Save an if(...) clause made redundant by (3691). (CVS 3692)danielk19772007-03-15
| | | FossilOrigin-Name: 8153edf8bea51b9344de1b700482879190f86fb4
* Prevent databases from being DETACHed while they are in use. Fix for #1873. ↵danielk19772006-06-27
| | | | | (CVS 3312) FossilOrigin-Name: 70a48b250bab99c5d9b4ad17c471663b8628e8d2
* Handle NULL database names in ATTACH and DETACH as if they were emptydrh2006-05-25
| | | | | strings. Ticket #1825. (CVS 3191) FossilOrigin-Name: 79a818bb05bc95c4c83375a679955dd18659b2b8
* Follow-up to check-in (3164). Make sure SQLITE_NOMEM is returned afterdrh2006-04-10
| | | | | | a memory allocation failure. It is not sufficent to return an "out of memory" error message. The return code needs to be SQLITE_NOMEM. (CVS 3172) FossilOrigin-Name: 9d95750e8556aef20a637a815652d547ed2f887c
* Make sure SQLITE_NOMEM is reported out on a malloc failure in an ATTACHdrh2006-04-05
| | | | | even if the malloc failure reports within a nested calls to sqlite3_prepare(). (CVS 3164) FossilOrigin-Name: 3538a4e30fb5131b461bb0cf72cada63e9724e14
* Rename some variables to avoid hiding others. Also add "static" to two ↵danielk19772006-01-24
| | | | | function signatures that were missing it. (CVS 3024) FossilOrigin-Name: d86f18a4277ebffb644ba2e574e0b697c8bbf8e4
* Use a global variable protected by a mutex instead of thread-specific-data ↵danielk19772006-01-18
| | | | | to record malloc() failures. (CVS 2972) FossilOrigin-Name: ac090f2ab3b5a792c2fdf897e10060f263e0d408
* Various fixes that allow the malloc() failure tests to pass again. (CVS 2963)danielk19772006-01-17
| | | FossilOrigin-Name: 0505405fb9ae1068b7976718efbf2aabd07592d4
* Automatically deallocate thread-specific data when it is no longerdrh2006-01-11
| | | | | | | being used. Ticket #1601. Also implemented the suggestion of ticket #1603. Memory management is now off by default at compile-time. The sqlite3_enable_memory_management() API has been removed. (CVS 2919) FossilOrigin-Name: 5d9c6aa964305c3f36741ff0058da5b5f3ce0d24
* Fix bugs caused by assuming that shared-schemas are initialized. (CVS 2917)danielk19772006-01-11
| | | FossilOrigin-Name: 3970eb875d1830d35b3a70a7583a8ab6b238cad6
* If compiled with memory-debugging, write garbage to memory when it is freed. ↵danielk19772006-01-10
| | | | | Fix for #1594. (CVS 2900) FossilOrigin-Name: bd02a6faefa3602d0b93d54bc57809a2222d5903