aboutsummaryrefslogtreecommitdiff
path: root/src/tclsqlite.c
diff options
context:
space:
mode:
authordanielk1977 <danielk1977@noemail.net>2004-06-08 00:02:33 +0000
committerdanielk1977 <danielk1977@noemail.net>2004-06-08 00:02:33 +0000
commit4f057f904aae4261c5ad898c8f57b9cef4a1fcc0 (patch)
treed7e676f35457690b5ff57945154bf77f0bfd5531 /src/tclsqlite.c
parent2ac3ee9787c953e1df00dc21ebc0269f2efcc76f (diff)
downloadsqlite-4f057f904aae4261c5ad898c8f57b9cef4a1fcc0.tar.gz
sqlite-4f057f904aae4261c5ad898c8f57b9cef4a1fcc0.zip
Remove the third argument from the sqlite3_open() API. (CVS 1540)
FossilOrigin-Name: 62e31f396cb6b49f542977e2fade78e11e371132
Diffstat (limited to 'src/tclsqlite.c')
-rw-r--r--src/tclsqlite.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/tclsqlite.c b/src/tclsqlite.c
index 84fbb95c9..d9c46f2d1 100644
--- a/src/tclsqlite.c
+++ b/src/tclsqlite.c
@@ -11,7 +11,7 @@
*************************************************************************
** A TCL Interface to SQLite
**
-** $Id: tclsqlite.c,v 1.79 2004/06/02 00:41:09 drh Exp $
+** $Id: tclsqlite.c,v 1.80 2004/06/08 00:02:35 danielk1977 Exp $
*/
#ifndef NO_TCL /* Omit this whole file if TCL is unavailable */
@@ -896,7 +896,6 @@ static int DbMain(void *cd, Tcl_Interp *interp, int objc,Tcl_Obj *const*objv){
const char *zArg;
char *zErrMsg;
const char *zFile;
- const char *zOpts[2] = {0, 0};
char zBuf[80];
if( objc==2 ){
zArg = Tcl_GetStringFromObj(objv[1], 0);
@@ -949,10 +948,7 @@ static int DbMain(void *cd, Tcl_Interp *interp, int objc,Tcl_Obj *const*objv){
#ifdef SQLITE_HAS_CODEC
p->db = sqlite3_open_encrypted(zFile, pKey, nKey, 0, &zErrMsg);
#else
- if( objc>3 ){
- zOpts[0] = Tcl_GetString(objv[3]);
- }
- sqlite3_open(zFile, &p->db, zOpts);
+ sqlite3_open(zFile, &p->db);
if( SQLITE_OK!=sqlite3_errcode(p->db) ){
zErrMsg = strdup(sqlite3_errmsg(p->db));
sqlite3_close(p->db);