sqlite3/sqlite-strcasecmp.patch

20 lines
925 B
Diff

--- src/tclsqlite.c 2008/03/25 16:16:29 1.212
+++ src/tclsqlite.c 2008/04/04 12:21:09 1.213
@@ -1340,11 +1340,11 @@
Tcl_AppendResult(interp,"Error: non-null separator required for copy",0);
return TCL_ERROR;
}
- if(sqlite3StrICmp(zConflict, "rollback") != 0 &&
- sqlite3StrICmp(zConflict, "abort" ) != 0 &&
- sqlite3StrICmp(zConflict, "fail" ) != 0 &&
- sqlite3StrICmp(zConflict, "ignore" ) != 0 &&
- sqlite3StrICmp(zConflict, "replace" ) != 0 ) {
+ if(strcasecmp(zConflict, "rollback") != 0 &&
+ strcasecmp(zConflict, "abort" ) != 0 &&
+ strcasecmp(zConflict, "fail" ) != 0 &&
+ strcasecmp(zConflict, "ignore" ) != 0 &&
+ strcasecmp(zConflict, "replace" ) != 0 ) {
Tcl_AppendResult(interp, "Error: \"", zConflict,
"\", conflict-algorithm must be one of: rollback, "
"abort, fail, ignore, or replace", 0);