1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

Fix a bug in the new sqlite3_test_control case of the previous check-in.

FossilOrigin-Name: 3b77701bc854997346e9cc33fe64d00d4b6332bd
This commit is contained in:
drh
2010-01-02 03:46:43 +00:00
parent 0e857739c4
commit 855787a1b3
3 changed files with 11 additions and 11 deletions

View File

@@ -2310,7 +2310,7 @@ int sqlite3_test_control(int op, ...){
case SQLITE_TESTCTRL_ISKEYWORD: {
const char *zWord = va_arg(ap, const char*);
int n = sqlite3Strlen30(zWord);
rc = sqlite3KeywordCode((u8*)zWord, n) ? SQLITE_N_KEYWORD : 0;
rc = (sqlite3KeywordCode((u8*)zWord, n)!=TK_ID) ? SQLITE_N_KEYWORD : 0;
break;
}
#endif