mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Add pzErr parameters to the xConnect and xCreate methods of virtual tables
in order to provide better error reporting. This is an interface change for virtual tables. Prior virtual table implementations will need to be modified and recompiled. (CVS 3402) FossilOrigin-Name: f44b8bae97b6872524580009c96d07391578c388
This commit is contained in:
15
src/test8.c
15
src/test8.c
@@ -13,7 +13,7 @@
|
||||
** is not included in the SQLite library. It is used for automated
|
||||
** testing of the SQLite library.
|
||||
**
|
||||
** $Id: test8.c,v 1.40 2006/07/08 18:09:15 drh Exp $
|
||||
** $Id: test8.c,v 1.41 2006/09/10 17:32:00 drh Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
#include "tcl.h"
|
||||
@@ -312,7 +312,8 @@ static int echoConstructor(
|
||||
sqlite3 *db,
|
||||
void *pAux,
|
||||
int argc, char **argv,
|
||||
sqlite3_vtab **ppVtab
|
||||
sqlite3_vtab **ppVtab,
|
||||
char **pzErr
|
||||
){
|
||||
int i;
|
||||
echo_vtab *pVtab;
|
||||
@@ -358,11 +359,12 @@ static int echoCreate(
|
||||
sqlite3 *db,
|
||||
void *pAux,
|
||||
int argc, char **argv,
|
||||
sqlite3_vtab **ppVtab
|
||||
sqlite3_vtab **ppVtab,
|
||||
char **pzErr
|
||||
){
|
||||
int rc = SQLITE_OK;
|
||||
appendToEchoModule((Tcl_Interp *)(pAux), "xCreate");
|
||||
rc = echoConstructor(db, pAux, argc, argv, ppVtab);
|
||||
rc = echoConstructor(db, pAux, argc, argv, ppVtab, pzErr);
|
||||
|
||||
/* If there were two arguments passed to the module at the SQL level
|
||||
** (i.e. "CREATE VIRTUAL TABLE tbl USING echo(arg1, arg2)"), then
|
||||
@@ -393,10 +395,11 @@ static int echoConnect(
|
||||
sqlite3 *db,
|
||||
void *pAux,
|
||||
int argc, char **argv,
|
||||
sqlite3_vtab **ppVtab
|
||||
sqlite3_vtab **ppVtab,
|
||||
char **pzErr
|
||||
){
|
||||
appendToEchoModule((Tcl_Interp *)(pAux), "xConnect");
|
||||
return echoConstructor(db, pAux, argc, argv, ppVtab);
|
||||
return echoConstructor(db, pAux, argc, argv, ppVtab, pzErr);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user