From: drh Date: Tue, 27 Jun 2006 00:14:27 +0000 (+0000) Subject: Export the sqlite3_bind_value API to loadable extensions. (CVS 3299) X-Git-Tag: version-3.6.10~2868 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1be6324894f06db1422c35c61919cf5f5fad68f;p=thirdparty%2Fsqlite.git Export the sqlite3_bind_value API to loadable extensions. (CVS 3299) FossilOrigin-Name: 1ca385bb39514cb73f506bfbbe38aabb6b70816c --- diff --git a/manifest b/manifest index d5d1700560..c711df3f35 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C Publish\sAPIs\ssqlite3_malloc()\sand\ssqlite3_realloc()\sthat\suse\sthe\sOS-layer\nmemory\sallocator.\s\sConvert\ssqlite3_free()\sand\ssqlite3_mprintf()\sto\salso\nuse\sthe\sOS-layer\smemory\sallocator.\s(CVS\s3298) -D 2006-06-26T21:35:45 +C Export\sthe\ssqlite3_bind_value\sAPI\sto\sloadable\sextensions.\s(CVS\s3299) +D 2006-06-27T00:14:28 F Makefile.in f839b470345d3cb4b0644068474623fe2464b5d3 F Makefile.linux-gcc 2d8574d1ba75f129aba2019f0b959db380a90935 F README 9c4e2d6706bdcc3efdd773ce752a8cdab4f90028 @@ -48,7 +48,7 @@ F src/hash.c 449f3d6620193aa557f5d86cbc5cc6b87702b185 F src/hash.h 1b3f7e2609141fd571f62199fc38687d262e9564 F src/insert.c 63f01d3f4e0ba7ed171934a24aece2191824faec F src/legacy.c 10e01a902d7f2c872c7922fedf19a2df70935857 -F src/loadext.c 66035906cd0ea9904eb70884a41116f41a957bc9 +F src/loadext.c e4a39d0c8443827b517024a3369584024ba23e17 F src/main.c 2f78bd86852fdd42e3e9e0e4dba54000d9dc516d F src/md5.c c5fdfa5c2593eaee2e32a5ce6c6927c986eaf217 F src/os.c 59f05de8c5777c34876607114a2fbe55ae578235 @@ -73,7 +73,7 @@ F src/select.c 380fa06c99ae01050c0054c4b1db91e9f1d8322d F src/server.c 087b92a39d883e3fa113cae259d64e4c7438bc96 F src/shell.c ad73192b30a338a58fe81183d4a5d5a1d4e51d36 F src/sqlite.h.in af0ec0cfb2f8211e42cabf2523d1c8783f35ccaf -F src/sqlite3ext.h 106a003c825c16bd100a1eed8c047a41e7bb2c4c +F src/sqlite3ext.h c611255287e9a11ce4f1fe6251c2a0b9d32a828b F src/sqliteInt.h 4b1a3193b875a4d56f07be87eb97d5014617fe60 F src/table.c e707e822aad688034d391b93df63d6b2d302fdca F src/tclsqlite.c 32d9e0147077f2e2c127c5f214fb3fe03ef97d18 @@ -374,7 +374,7 @@ F www/tclsqlite.tcl bb0d1357328a42b1993d78573e587c6dcbc964b9 F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0 F www/version3.tcl 890248cf7b70e60c383b0e84d77d5132b3ead42b F www/whentouse.tcl 97e2b5cd296f7d8057e11f44427dea8a4c2db513 -P 74a3961f39b9a045518835b20940471ac97bca66 -R 694275a07db1c279baabcfc8350ecbab +P 85a66a25e97471d3c459c8da6a96990b0537dc7d +R 9b9a63db25a03e8a04d894575fa9aff2 U drh -Z aba47820684b05583eb21c2e0f904679 +Z 9d9f1e3d8238d70af115b74e0c7f2e43 diff --git a/manifest.uuid b/manifest.uuid index 5975320959..8afbcb8214 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -85a66a25e97471d3c459c8da6a96990b0537dc7d \ No newline at end of file +1ca385bb39514cb73f506bfbbe38aabb6b70816c \ No newline at end of file diff --git a/src/loadext.c b/src/loadext.c index 6b277675f1..2d254aad1e 100644 --- a/src/loadext.c +++ b/src/loadext.c @@ -102,6 +102,7 @@ const sqlite3_api_routines sqlite3_api = { sqlite3_bind_parameter_name, sqlite3_bind_text, sqlite3_bind_text16, + sqlite3_bind_value, sqlite3_busy_handler, sqlite3_busy_timeout, sqlite3_changes, diff --git a/src/sqlite3ext.h b/src/sqlite3ext.h index 5088499da3..71b09146a3 100644 --- a/src/sqlite3ext.h +++ b/src/sqlite3ext.h @@ -15,7 +15,7 @@ ** as extensions by SQLite should #include this file instead of ** sqlite3.h. ** -** @(#) $Id: sqlite3ext.h,v 1.4 2006/06/26 21:35:45 drh Exp $ +** @(#) $Id: sqlite3ext.h,v 1.5 2006/06/27 00:14:28 drh Exp $ */ #ifndef _SQLITE3EXT_H_ #define _SQLITE3EXT_H_ @@ -40,6 +40,7 @@ struct sqlite3_api_routines { const char * (*bind_parameter_name)(sqlite3_stmt*,int); int (*bind_text)(sqlite3_stmt*,int,const char*,int n,void(*)(void*)); int (*bind_text16)(sqlite3_stmt*,int,const void*,int,void(*)(void*)); + int (*bind_value)(sqlite3_stmt*,int,const sqlite3_value*); int (*busy_handler)(sqlite3*,int(*)(void*,int),void*); int (*busy_timeout)(sqlite3*,int ms); int (*changes)(sqlite3*); @@ -85,7 +86,7 @@ struct sqlite3_api_routines { int (*exec)(sqlite3*,const char*,sqlite3_callback,void*,char**); int (*expired)(sqlite3_stmt*); int (*finalize)(sqlite3_stmt*pStmt); - void (*free)(char*z); + void (*free)(void*); void (*free_table)(char**result); int (*get_autocommit)(sqlite3*); void * (*get_auxdata)(sqlite3_context*,int); @@ -168,6 +169,7 @@ struct sqlite3_api_routines { #define sqlite3_bind_parameter_name sqlite3_api->bind_parameter_name #define sqlite3_bind_text sqlite3_api->bind_text #define sqlite3_bind_text16 sqlite3_api->bind_text16 +#define sqlite3_bind_value sqlite3_api->bind_value #define sqlite3_busy_handler sqlite3_api->busy_handler #define sqlite3_busy_timeout sqlite3_api->busy_timeout #define sqlite3_changes sqlite3_api->changes