mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-05 15:55:57 +03:00
More refinements to Windows OSTRACE usage. Replace all usage of sqlite3TestErrorName() with sqlite3ErrName() and add missing return codes.
FossilOrigin-Name: 05ba5e23fcc5da416d47a8ad5e667ed6a0c7a34a
This commit is contained in:
@@ -278,7 +278,7 @@ int sqlite3_intarray_bind(
|
||||
extern int getDbPointer(Tcl_Interp *interp, const char *zA, sqlite3 **ppDb);
|
||||
extern void *sqlite3TestTextToPtr(const char*);
|
||||
extern int sqlite3TestMakePointerStr(Tcl_Interp*, char *zPtr, void*);
|
||||
extern const char *sqlite3TestErrorName(int);
|
||||
extern const char *sqlite3ErrName(int);
|
||||
|
||||
/*
|
||||
** sqlite3_intarray_create DB NAME
|
||||
@@ -309,7 +309,7 @@ static int test_intarray_create(
|
||||
#endif
|
||||
if( rc!=SQLITE_OK ){
|
||||
assert( pArray==0 );
|
||||
Tcl_AppendResult(interp, sqlite3TestErrorName(rc), (char*)0);
|
||||
Tcl_AppendResult(interp, sqlite3ErrName(rc), (char*)0);
|
||||
return TCL_ERROR;
|
||||
}
|
||||
sqlite3TestMakePointerStr(interp, zPtr, pArray);
|
||||
@@ -352,7 +352,7 @@ static int test_intarray_bind(
|
||||
}
|
||||
rc = sqlite3_intarray_bind(pArray, n, a, sqlite3_free);
|
||||
if( rc!=SQLITE_OK ){
|
||||
Tcl_AppendResult(interp, sqlite3TestErrorName(rc), (char*)0);
|
||||
Tcl_AppendResult(interp, sqlite3ErrName(rc), (char*)0);
|
||||
return TCL_ERROR;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user