diff options
Diffstat (limited to 'src/test9.c')
-rw-r--r-- | src/test9.c | 38 |
1 files changed, 12 insertions, 26 deletions
diff --git a/src/test9.c b/src/test9.c index 1e92245ff..a1fb49beb 100644 --- a/src/test9.c +++ b/src/test9.c @@ -14,7 +14,7 @@ ** for completeness. Test code is written in C for these cases ** as there is not much point in binding to Tcl. ** -** $Id: test9.c,v 1.4 2007/08/21 10:44:16 drh Exp $ +** $Id: test9.c,v 1.5 2008/01/23 12:52:41 drh Exp $ */ #include "sqliteInt.h" #include "tcl.h" @@ -131,41 +131,22 @@ static int c_misuse_test( } sqlite3_close(db); -#ifndef SQLITE_OMIT_UTF16 - rc = sqlite3_collation_needed16(db, 0, 0); - if( rc!=SQLITE_MISUSE ){ - zErrFunction = "sqlite3_collation_needed16"; - goto error_out; - } -#endif - rc = sqlite3_collation_needed(db, 0, 0); - if( rc!=SQLITE_MISUSE ){ - zErrFunction = "sqlite3_collation_needed"; - goto error_out; - } - - rc = sqlite3_create_collation(db, 0, 0, 0, 0); - if( rc!=SQLITE_MISUSE ){ - zErrFunction = "sqlite3_create_collation"; - goto error_out; - } - - rc = sqlite3_create_function(db, 0, 0, 0, 0, 0, 0, 0); + rc = sqlite3_errcode(db); if( rc!=SQLITE_MISUSE ){ - zErrFunction = "sqlite3_create_function"; + zErrFunction = "sqlite3_errcode"; goto error_out; } - rc = sqlite3_busy_handler(db, 0, 0); + rc = sqlite3_prepare(db, 0, 0, 0, 0); if( rc!=SQLITE_MISUSE ){ - zErrFunction = "sqlite3_busy_handler"; + zErrFunction = "sqlite3_prepare"; goto error_out; } - rc = sqlite3_errcode(db); + rc = sqlite3_prepare_v2(db, 0, 0, 0, 0); if( rc!=SQLITE_MISUSE ){ - zErrFunction = "sqlite3_busy_handler"; + zErrFunction = "sqlite3_prepare_v2"; goto error_out; } @@ -175,6 +156,11 @@ static int c_misuse_test( zErrFunction = "sqlite3_prepare16"; goto error_out; } + rc = sqlite3_prepare16_v2(db, 0, 0, 0, 0); + if( rc!=SQLITE_MISUSE ){ + zErrFunction = "sqlite3_prepare16_v2"; + goto error_out; + } #endif return TCL_OK; |