aboutsummaryrefslogtreecommitdiff
path: root/src/attach.c
Commit message (Collapse)AuthorAge
...
* | New test cases and fixes for minor problems.drh2018-01-03
| | | | | | FossilOrigin-Name: e0da2cc382e0db33d0423372133115f52c77bd0093dbf816c7e88a0aad5f6582
* | Miscellaneous code and comment cleanup.drh2018-01-03
| | | | | | FossilOrigin-Name: fa6069fb3b0a4411fd6661dec7de40ece3064a2fe4b94ebfbda9e5e524e04e86
* | Replace sqlite3_memdb_config() with sqlite3_deserialize(). Remove thedrh2018-01-03
|/ | | | | | "db memdb" command from the TCL interface, replacing it with "db serialize" and "db deserialize". FossilOrigin-Name: 2f6e9df9f0c5a9e5b1acb99cfa9486850cc1822d35b0989e779a7a10f3b1f1ac
* In the parse tree, combine LIMIT and OFFSET into a single expression rooteddrh2017-11-14
| | | | | | on a TK_LIMIT node, for a small code size reduction and performance increase, and a reduction in code complexity. FossilOrigin-Name: 3925facd942c9df663f9b29b1e6f94f6be14af8c2b99eb691bfc836b4c220826
* Allow ATTACH and DETACH to occur inside of a transaction.drh2017-07-26
| | | FossilOrigin-Name: ac1fd6beb6c804af5faf1e06a51177a8316007ff9e718c398bd7a24d2ecc4ed3
* Minor refactoring change to clarify how ATTACH works. No functional changes.drh2017-06-16
| | | FossilOrigin-Name: 3944a32e1dd90ff903bcbaaa7cb497cebcfcb2ba2a326726ec2268505e524ae3
* Avoid unnecessary calls to sqlite3BtreeEnterAll() and sqlite3BtreeLeaveAll()drh2017-01-02
| | | | | when no btree is using shared-cache. FossilOrigin-Name: cfb3158204628eb2fd170090a7f212df0e4ce6c9
* Take care not to try to generate code for the ATTACH and DETACH commandsdrh2016-11-11
| | | | | | if there were syntax errors during parsing. Fix for ticket [2f1b168ab4d4844] FossilOrigin-Name: b0ff183b8ffdbebece06cfea1c6781fc0e8e8547
* Add the EP_Leaf flag bit to the Expr.flags field to indicate Exprdrh2016-09-23
| | | | | | nodes that do not have substructure. Use that bit to avoid unnecessary recursion. FossilOrigin-Name: 8a6ea455cd1bf42ae0a7f1f1789baf88d782db13
* If no KEY is specified on ATTACH, copy the main schema key if the key sizedrh2016-09-16
| | | | | | is non-zero. In other words, allow for -1 as a valid key size in support of the --textkey to SEE. FossilOrigin-Name: 03573887dbf357f8aa54e4a1cd03b82b0ded8139
* Rename the Db.zName field to Db.zDbSName to make it more descriptive and todrh2016-08-18
| | | | | | distinguish it from all of the other "zName" variables scattered throughout the code. FossilOrigin-Name: 92a22f01343a898455fd61c3b8e7d7c954f5b569
* Make the SQLITE_DEFAULT_SYNCHRONOUS and SQLITE_DEFAULT_WAL_SYNCHRONOUSdrh2016-03-08
| | | | | values zero-based to agree with PRAGMA synchronous. FossilOrigin-Name: 592d2104361500e5002783ba329a2609389c57b9
* Add compile-time options SQLITE_DEFAULT_SYNCHRONOUS anddrh2016-03-08
| | | | | | SQLITE_DEFAULT_WAL_SYNCHRONOUS used to specify the default synchronous settings for all database connections. FossilOrigin-Name: 1fefa967aa93372d232b96b1e0232b7b855d6d00
* Fix ATTACH to use the symbolic name PAGER_SYNCHRONOUS_FULL rather thandrh2016-03-08
| | | | | an integer literal. FossilOrigin-Name: c4e192a0e5a408e198dbacb2752859a00d2b572f
* Add the SQLITE_NOMEM_BKPT macro to enhance the ability to debug OOM errors.drh2016-02-15
|\ | | | | | | | | Only effective with compiling with SQLITE_DEBUG. FossilOrigin-Name: 9b3454762d142113f5923d754ca6bd2edefbd362
| * Enhance ability to debug out-of-memory errors.mistachkin2016-02-13
| | | | | | FossilOrigin-Name: 6a9c4a3ebfb7cc0738ef6634440ccab44a21ff28
* | Improvements to the application-defined function mechanism so that it isdrh2016-02-15
|/ | | | | | more compact and runs faster, especially when the application defines thousands of new SQL functions. FossilOrigin-Name: 3201fbcc5105d23132e6b8b7ac825e66af4f8a39
* Add the slightly faster sqlite3DbMallocRawNN(db,n) routine for the majoritydrh2016-02-05
| | | | | cases where db is guaranteed to be not NULL. FossilOrigin-Name: 0a802e96ab06e2643834b83671fa8353da1a348d
* Improvements to the way that OOM errors are processed.drh2016-02-05
| | | FossilOrigin-Name: c3ef03478a5788c855b3aef385d43ae7f494f440
* Refinements to synchronous logic: drh2016-02-04
| | | | | | | | | (1) Use PAGER_SYNCHRONOUS_FULL rather than the corresponding magic number. (2) Honor SQLITE_NO_SYNC on xDelete calls with sync (3) Count xDelete syncs during testing (4) Fix #ifs on SQLITE_EXTRA_DURABLE so that directory syncs on journal unlink are off by default. FossilOrigin-Name: e3157cb5ad0d22758e766a95fb1463a7810f7d7f
* Use sqlite3VdbeAddOp4() rather than a separate sqlite3VdbeChangeP4() call, fordrh2016-01-16
| | | | | a slightly smaller and faster binary. FossilOrigin-Name: a4258cd4613c55acacb5c7b61faa3de7eb0759d2
* Combine the xFunc and xStep pointers of the FuncDef object into a singledrh2016-01-14
| | | | | pointer xSFunc. FossilOrigin-Name: 0d1b3d7d3ca66cb0b97493f1aeade1703af3c9f4
* Cache the sqlite3_context structure in the P4 operand of VDBE programsdrh2015-06-26
| | | | | for faster SQL function dispatch. FossilOrigin-Name: 2abc44eb3b9d489321baa50bc25e17dafbda3687
* Remove unnecessary parser error count increments. Let the sqlite3ErrorMsg()drh2015-04-17
| | | | | take care of doing that. FossilOrigin-Name: 3f3b0f683af2fbee83811536f6bef770ff919385
* On a DETACH statement, keep all schemas intact except fo the one that isdrh2015-04-13
| | | | | being detached, and thus avoid unnecessary schema reparsing. FossilOrigin-Name: 661db19b34566642dd44ee4cff4ebc093cb8a552
* 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
* Make sure the Btree mutex is held when setting the locking mode and thedrh2014-12-12
| | | | | secure delete flag when attaching a shared-cache database. FossilOrigin-Name: 6bef7ede2bbf0a51729e1943b0b0c895cb57c718
* All interfaces working and tested.drh2014-09-11
| | | FossilOrigin-Name: 96ea5c0b3cd1dec81d490f2f958ebd2e47a24921
* Add support for the extra parameter on the sqlite3_set_authorizer() callbackdrh2014-09-11
| | | | | | | and support for failing an ATTACH with an authentication-required database using bad credentials. The extension is now feature complete, but much testing and bug-fixing remains. FossilOrigin-Name: 596e728b0eb19a34c888e33d4d37978ca2bf1e00
* Allow any arbitrary expression as the filename in an ATTACH statement,drh2013-12-20
| | | | | including functions and subqueries. FossilOrigin-Name: df70a1f30393b34146d6b8bf1df5a76aaf362efe
* The sqlite3FixInit() routine cannot fail. So change the return type from "int"drh2013-10-03
| | | | | to "void". FossilOrigin-Name: 500c5932fe3f5fcd0940522f7839d581c555e0eb
* Return an error if an attempt is made to create a trigger with an SQL ↵dan2013-10-03
| | | | | variable embedded within it. If such a variable reference is found within a trigger definition loaded from the sqlite_master table, silently replace it with a NULL. FossilOrigin-Name: f35f6ae3da77dbdf5f7a4a9927475659fc6e0ca6
* Increase the number of bits available in Expr.flags. Other tweaks aimed atdrh2013-09-12
| | | | | making expression processing more robust. FossilOrigin-Name: 579a512538528cf4bb4381ba393c5d9e7310086b
* Combine the FuncDef.iPrefEnc and FuncDef.flags fields into a singledrh2013-09-06
| | | | | new FuncDef.funcFlags field. FossilOrigin-Name: 97b10e66e98e84755aa577f8da017bf1aea2056c
* Adjust #ifdefs to get SQLITE_OMIT_AUTOMATIC_INDEX and SQLITE_OMIT_PAGER_PRAGMASdrh2013-08-23
| | | | | to build. FossilOrigin-Name: ed310201628cf79c0f57674ae7478ee6738b1c6e
* The fullfsync, checkpoint_fullfsync, and cache_spill pragmas apply to alldrh2013-08-17
| | | | | | files of a database connection, including those opened by future ATTACH statements. FossilOrigin-Name: d07c4331a28d44deca1ece8a34118f5b121b3ee2
* Many spelling fixes in comments. No changes to code.mistachkin2013-03-21
| | | FossilOrigin-Name: 6f6e2d50941e444ebc83604daddcc034137a05b7
* Make sure memory is freed using a routine that is compatible with thedrh2012-12-05
| | | | | | routine used to allocate the memory. The SQLITE_MEMDEBUG compile-time option enforces this. FossilOrigin-Name: 9f6c68856b694373b7ffb124abd996e519ba5921
* Shared-cache mode fixes for views and virtual tables.dan2012-10-04
| | | FossilOrigin-Name: 2b370dea704b59262c604af0efcef5660b194454
* The former sqlite3ResetInternalSchema() routine was really two different drh2012-05-15
| | | | | | | | routines, selected by parameter, each with a confused mission. So split this routine up into three separate smaller routines, calling each separately as needed. Hopefully this will make further refactoring and schema reset collateral damage containment easier. FossilOrigin-Name: aa0c3493d3647d7efe527067e9fcccefda8e3008
* Set the sqlite3.mallocFailed flag if sqlite3ParseUri fails with SQLITE_NOMEM.drh2011-05-07
| | | FossilOrigin-Name: ca3797d4967361e31a8a5ce1ce8190b095f3ed4c
* Fix minor compiler warnings.drh2011-05-07
| | | FossilOrigin-Name: 139eecbe1b072711a36128f1eeb24fc3e3bacc1c
* Have the ATTACH command do URI interpretation in the same way as ↵dan2011-04-23
| | | | | sqlite3_open() and sqlite3_open_v2() do. FossilOrigin-Name: 68240e75e87a54cde93352b0ec364d34365a8170
* When ATTACH-ing a new database to an existing database with a codec, dodrh2011-04-09
| | | | | | not enable the codec in the attached database if it is not enabled in the existing database and it is not requested by the USING clause. FossilOrigin-Name: 4caa5fc86e7fe404cd188713277f2801cd02dbc9
* Begin a series of changes designed to reduce the scope and frequency ofdrh2011-04-02
| | | | | | | | | | | invalidating schemas. Design goals are that the internal schema should never be deleted out from under a prepared statement that is running and that all prepared statements should be expired if the schema is invalidated. At the same time, minimize the number of schema invalidations. This change merely revises the sqlite3ResetInternalSchema() function to use -1 as the wildcard for "all" rather than 0, so that we can reset the main schema independently of all the others. FossilOrigin-Name: 6a8ad6e31e0d2b8a5ace38faf0efd805155ee5f3
* Fix the ATTACH command so that the filename argument can be any expressiondrh2011-02-04
| | | | | | | and so that if authorizer callback gets a NULL pointer for the filename if the filename argument is anything other than a string literal. Ticket [9013e13dba5b58c7] FossilOrigin-Name: e64e1453a9c204d93de1af92dc0b3ca26762b024
* Fix several harmless compiler warnings.drh2010-09-28
| | | FossilOrigin-Name: 7be03ecc04235420e54fed8a88742243278de160
* Remove the sqlite3BtreeFactor() wrapper routine. All modules now calldrh2010-08-30
| | | | | sqlite3BtreeOpen() directly. FossilOrigin-Name: 0900e35348f4b9bf327d6ae2884c4ddbb6345d8d
* Change the journal_mode pragma to remove the "default journal mode" concept.drh2010-07-08
| | | | | | The journal_mode pragma only effects currently attached databases and does not change the behavior of future attachments. FossilOrigin-Name: e396184cd3bdb96e29ac33af5d1f631cac553341
* Add some 'const' markers to static data that is really constant.dan2010-06-02
| | | FossilOrigin-Name: e7073e23b80e7cae0c76d42f014ee9b2d40a8f2f