1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-10-25 20:58:26 +03:00

Modify ATTACH and DETACH to execute at runtime instead of compile time. (CVS 2803)

FossilOrigin-Name: 5e04ec694add7a8331e3d6fbdfcaed51349ae7bc
This commit is contained in:
danielk1977
2005-12-06 17:19:11 +00:00
parent 7dd90a4785
commit f744bb56a1
7 changed files with 268 additions and 142 deletions

View File

@@ -16,7 +16,7 @@
** sqliteRegisterBuildinFunctions() found at the bottom of the file.
** All other code has file scope.
**
** $Id: func.c,v 1.111 2005/10/13 02:09:50 drh Exp $
** $Id: func.c,v 1.112 2005/12/06 17:19:11 danielk1977 Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -1025,6 +1025,7 @@ void sqlite3RegisterBuiltinFunctions(sqlite3 *db){
#ifndef SQLITE_OMIT_ALTERTABLE
sqlite3AlterFunctions(db);
#endif
sqlite3AttachFunctions(db);
for(i=0; i<sizeof(aAggs)/sizeof(aAggs[0]); i++){
void *pArg = 0;
switch( aAggs[i].argType ){