diff options
author | drh <drh@noemail.net> | 2004-09-06 17:24:11 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2004-09-06 17:24:11 +0000 |
commit | 9bb575fd72e8c92a39f35bfd75591b210908faad (patch) | |
tree | c71d1973ac94e40d9510c941a3ab0501591f59be /src/func.c | |
parent | 873cdcb2ce572b2c1d03d70db8ebfa03266518e9 (diff) | |
download | sqlite-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/func.c')
-rw-r--r-- | src/func.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/func.c b/src/func.c index b31f330dd..22921ba32 100644 --- a/src/func.c +++ b/src/func.c @@ -16,7 +16,7 @@ ** sqliteRegisterBuildinFunctions() found at the bottom of the file. ** All other code has file scope. ** -** $Id: func.c,v 1.82 2004/09/02 15:53:57 drh Exp $ +** $Id: func.c,v 1.83 2004/09/06 17:24:13 drh Exp $ */ #include <ctype.h> #include <math.h> @@ -268,7 +268,7 @@ static void last_insert_rowid( int arg, sqlite3_value **argv ){ - sqlite *db = sqlite3_user_data(context); + sqlite3 *db = sqlite3_user_data(context); sqlite3_result_int64(context, sqlite3_last_insert_rowid(db)); } @@ -281,7 +281,7 @@ static void changes( int arg, sqlite3_value **argv ){ - sqlite *db = sqlite3_user_data(context); + sqlite3 *db = sqlite3_user_data(context); sqlite3_result_int(context, sqlite3_changes(db)); } @@ -294,7 +294,7 @@ static void total_changes( int arg, sqlite3_value **argv ){ - sqlite *db = sqlite3_user_data(context); + sqlite3 *db = sqlite3_user_data(context); sqlite3_result_int(context, sqlite3_total_changes(db)); } @@ -690,7 +690,7 @@ static void test_destructor( ){ char *zVal; int len; - sqlite *db = sqlite3_user_data(pCtx); + sqlite3 *db = sqlite3_user_data(pCtx); test_destructor_count_var++; assert( nArg==1 ); @@ -917,7 +917,7 @@ static void minMaxFinalize(sqlite3_context *context){ ** functions. This should be the only routine in this file with ** external linkage. */ -void sqlite3RegisterBuiltinFunctions(sqlite *db){ +void sqlite3RegisterBuiltinFunctions(sqlite3 *db){ static struct { char *zName; signed char nArg; |