aboutsummaryrefslogtreecommitdiff
path: root/src/tclsqlite.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2004-09-06 17:24:11 +0000
committerdrh <drh@noemail.net>2004-09-06 17:24:11 +0000
commit9bb575fd72e8c92a39f35bfd75591b210908faad (patch)
treec71d1973ac94e40d9510c941a3ab0501591f59be /src/tclsqlite.c
parent873cdcb2ce572b2c1d03d70db8ebfa03266518e9 (diff)
downloadsqlite-9bb575fd72e8c92a39f35bfd75591b210908faad.tar.gz
sqlite-9bb575fd72e8c92a39f35bfd75591b210908faad.zip
Fix a naming conflict between sqlite versions 2 and 3. An open sqlite3
connection now *must* be called "sqlite3". You cannot call it "sqlite". This might break existing code. (CVS 1941) FossilOrigin-Name: 3ddf5a9d1c480a2e3aa32685879063b11afddbe1
Diffstat (limited to 'src/tclsqlite.c')
-rw-r--r--src/tclsqlite.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/tclsqlite.c b/src/tclsqlite.c
index 8c91ccd10..bcc2f0ef6 100644
--- a/src/tclsqlite.c
+++ b/src/tclsqlite.c
@@ -11,7 +11,7 @@
*************************************************************************
** A TCL Interface to SQLite
**
-** $Id: tclsqlite.c,v 1.103 2004/08/26 00:56:05 drh Exp $
+** $Id: tclsqlite.c,v 1.104 2004/09/06 17:24:13 drh Exp $
*/
#ifndef NO_TCL /* Omit this whole file if TCL is unavailable */
@@ -205,7 +205,7 @@ static int DbCommitHandler(void *cd){
static void tclCollateNeeded(
void *pCtx,
- sqlite *db,
+ sqlite3 *db,
int enc,
const char *zName
){
@@ -367,7 +367,7 @@ static Tcl_Obj *dbTextToObj(char const *zText){
** whenever one of those connection-specific commands is executed
** in Tcl. For example, if you run Tcl code like this:
**
-** sqlite db1 "my_database"
+** sqlite3 db1 "my_database"
** db1 close
**
** The first command opens a connection to the "my_database" database
@@ -1073,7 +1073,7 @@ static int DbObjCmd(void *cd, Tcl_Interp *interp, int objc,Tcl_Obj *const*objv){
}
/*
-** sqlite DBNAME FILENAME ?MODE? ?-key KEY?
+** sqlite3 DBNAME FILENAME ?MODE? ?-key KEY?
**
** This is the main Tcl command. When the "sqlite" Tcl command is
** invoked, this routine runs to process that command.
@@ -1088,16 +1088,16 @@ static int DbObjCmd(void *cd, Tcl_Interp *interp, int objc,Tcl_Obj *const*objv){
**
** For testing purposes, we also support the following:
**
-** sqlite -encoding
+** sqlite3 -encoding
**
** Return the encoding used by LIKE and GLOB operators. Choices
** are UTF-8 and iso8859.
**
-** sqlite -version
+** sqlite3 -version
**
** Return the version number of the SQLite library.
**
-** sqlite -tcl-uses-utf
+** sqlite3 -tcl-uses-utf
**
** Return "1" if compiled with a Tcl uses UTF-8. Return "0" if
** not. Used by tests to make sure the library was compiled
@@ -1190,7 +1190,7 @@ static int DbMain(void *cd, Tcl_Interp *interp, int objc,Tcl_Obj *const*objv){
*/
#ifdef SQLITE_TEST
{
- extern void Md5_Register(sqlite*);
+ extern void Md5_Register(sqlite3*);
#ifdef SQLITE_DEBUG
int mallocfail = sqlite3_iMallocFail;
sqlite3_iMallocFail = 0;