aboutsummaryrefslogtreecommitdiff
path: root/src/attach.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2006-01-06 21:52:49 +0000
committerdrh <drh@noemail.net>2006-01-06 21:52:49 +0000
commit198bf391287b72ce27348e48d2e8cc2848c34c03 (patch)
treea233cf7a63d02b5399a1b97cd5f9eabe045b9114 /src/attach.c
parent9e9fe6f87717465d9d05608dba4833a5b1bfae61 (diff)
downloadsqlite-198bf391287b72ce27348e48d2e8cc2848c34c03.tar.gz
sqlite-198bf391287b72ce27348e48d2e8cc2848c34c03.zip
Changes so that SQLITE_OMIT_PARSER and SQLITE_OMIT_DISKIO work. (CVS 2878)
FossilOrigin-Name: 9d71b7deaffdd7eb9ddad1f03df3e4c51c2cbd98
Diffstat (limited to 'src/attach.c')
-rw-r--r--src/attach.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/attach.c b/src/attach.c
index ef6f281d7..b63260c34 100644
--- a/src/attach.c
+++ b/src/attach.c
@@ -11,7 +11,7 @@
*************************************************************************
** This file contains code used to implement the ATTACH and DETACH commands.
**
-** $Id: attach.c,v 1.39 2006/01/05 11:34:33 danielk1977 Exp $
+** $Id: attach.c,v 1.40 2006/01/06 21:52:50 drh Exp $
*/
#include "sqliteInt.h"
@@ -335,8 +335,10 @@ void sqlite3Attach(Parse *pParse, Expr *p, Expr *pDbname, Expr *pKey){
codeAttach(pParse, SQLITE_ATTACH, "sqlite_attach", 3, p, p, pDbname, pKey);
}
-void sqlite3AttachFunctions(sqlite3 *db)
-{
+/*
+** Register the functions sqlite_attach and sqlite_detach.
+*/
+void sqlite3AttachFunctions(sqlite3 *db){
static const int enc = SQLITE_UTF8;
sqlite3_create_function(db, "sqlite_attach", 3, enc, db, attachFunc, 0, 0);
sqlite3_create_function(db, "sqlite_detach", 1, enc, db, detachFunc, 0, 0);