1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Remove the experimental sqlite_open_aux_file() API. It will soon be replaced

by ATTACH and DETACH SQL commands. (CVS 889)

FossilOrigin-Name: b6d6e07f3a5cb493f2cf0675bc6061c5afe5c078
This commit is contained in:
drh
2003-03-30 19:17:01 +00:00
parent 9077ba8ee5
commit 3aa31a16e6
7 changed files with 20 additions and 111 deletions

View File

@@ -11,7 +11,7 @@
*************************************************************************
** A TCL Interface to SQLite
**
** $Id: tclsqlite.c,v 1.44 2003/01/31 17:21:50 drh Exp $
** $Id: tclsqlite.c,v 1.45 2003/03/30 19:17:03 drh Exp $
*/
#ifndef NO_TCL /* Omit this whole file if TCL is unavailable */
@@ -330,14 +330,13 @@ static int DbObjCmd(void *cd, Tcl_Interp *interp, int objc,Tcl_Obj *const*objv){
static const char *DB_strs[] = {
"busy", "changes", "close",
"complete", "errorcode", "eval",
"function", "last_insert_rowid", "open_aux_file",
"timeout", 0
"function", "last_insert_rowid", "timeout",
0
};
enum DB_enum {
DB_BUSY, DB_CHANGES, DB_CLOSE,
DB_COMPLETE, DB_ERRORCODE, DB_EVAL,
DB_FUNCTION, DB_LAST_INSERT_ROWID,DB_OPEN_AUX_FILE,
DB_TIMEOUT,
DB_FUNCTION, DB_LAST_INSERT_ROWID,DB_TIMEOUT,
};
if( objc<2 ){
@@ -569,35 +568,6 @@ static int DbObjCmd(void *cd, Tcl_Interp *interp, int objc,Tcl_Obj *const*objv){
break;
}
/*
** $db open_aux_file FILENAME
**
** Begin using FILENAME as the database file used to store temporary
** tables.
*/
case DB_OPEN_AUX_FILE: {
const char *zFilename;
char *zErrMsg = 0;
int rc;
if( objc!=3 ){
Tcl_WrongNumArgs(interp, 2, objv, "FILENAME");
return TCL_ERROR;
}
zFilename = Tcl_GetStringFromObj(objv[2], 0);
rc = sqlite_open_aux_file(pDb->db, zFilename, &zErrMsg);
pDb->rc = rc;
if( rc!=0 ){
if( zErrMsg ){
Tcl_AppendResult(interp, zErrMsg, 0);
free(zErrMsg);
}else{
Tcl_AppendResult(interp, sqlite_error_string(rc), 0);
}
return TCL_ERROR;
}
break;
}
/*
** $db timeout MILLESECONDS
**