diff options
Diffstat (limited to 'src/test1.c')
-rw-r--r-- | src/test1.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test1.c b/src/test1.c index c563be849..af22b72ba 100644 --- a/src/test1.c +++ b/src/test1.c @@ -13,7 +13,7 @@ ** is not included in the SQLite library. It is used for automated ** testing of the SQLite library. ** -** $Id: test1.c,v 1.201 2006/01/20 15:45:36 drh Exp $ +** $Id: test1.c,v 1.202 2006/01/23 07:52:38 danielk1977 Exp $ */ #include "sqliteInt.h" #include "tcl.h" @@ -578,9 +578,11 @@ static void countStep(sqlite3_context *context, int argc, sqlite3_value **argv){ int v = sqlite3_value_int(argv[0]); if( v==40 ){ sqlite3_result_error(context, "value of 40 handed to x_count", -1); +#ifndef SQLITE_OMIT_UTF16 }else if( v==41 ){ const char zUtf16ErrMsg[] = { 0, 0x61, 0, 0x62, 0, 0x63, 0, 0, 0}; sqlite3_result_error16(context, &zUtf16ErrMsg[1-SQLITE_BIGENDIAN], -1); +#endif } } } |