aboutsummaryrefslogtreecommitdiff
path: root/src/tclsqlite.c
diff options
context:
space:
mode:
authorshane <shane@noemail.net>2008-09-01 20:38:12 +0000
committershane <shane@noemail.net>2008-09-01 20:38:12 +0000
commit689aa852cb7436ddefb38bc326f6be01de411fa2 (patch)
tree992783271149ac40470fea0779100fbf672eb8e0 /src/tclsqlite.c
parent93ce741ba5275c83812d00a90f8bb09400629d7f (diff)
downloadsqlite-689aa852cb7436ddefb38bc326f6be01de411fa2.tar.gz
sqlite-689aa852cb7436ddefb38bc326f6be01de411fa2.zip
Converted strcasecmp to sqlite3StrICmp. Test code only. (CVS 5654)
FossilOrigin-Name: bdeefe37602f8b0cd7c63a8c1e52de319cc51bea
Diffstat (limited to 'src/tclsqlite.c')
-rw-r--r--src/tclsqlite.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tclsqlite.c b/src/tclsqlite.c
index 3da23c3ad..705148de4 100644
--- a/src/tclsqlite.c
+++ b/src/tclsqlite.c
@@ -12,7 +12,7 @@
** A TCL Interface to SQLite. Append this file to sqlite3.c and
** compile the whole thing to build a TCL-enabled version of SQLite.
**
-** $Id: tclsqlite.c,v 1.220 2008/08/26 21:33:34 drh Exp $
+** $Id: tclsqlite.c,v 1.221 2008/09/01 20:38:12 shane Exp $
*/
#include "tcl.h"
#include <errno.h>
@@ -1343,11 +1343,11 @@ static int DbObjCmd(void *cd, Tcl_Interp *interp, int objc,Tcl_Obj *const*objv){
Tcl_AppendResult(interp,"Error: non-null separator required for copy",0);
return TCL_ERROR;
}
- if(strcasecmp(zConflict, "rollback") != 0 &&
- strcasecmp(zConflict, "abort" ) != 0 &&
- strcasecmp(zConflict, "fail" ) != 0 &&
- strcasecmp(zConflict, "ignore" ) != 0 &&
- strcasecmp(zConflict, "replace" ) != 0 ) {
+ if(sqlite3StrICmp(zConflict, "rollback") != 0 &&
+ sqlite3StrICmp(zConflict, "abort" ) != 0 &&
+ sqlite3StrICmp(zConflict, "fail" ) != 0 &&
+ sqlite3StrICmp(zConflict, "ignore" ) != 0 &&
+ sqlite3StrICmp(zConflict, "replace" ) != 0 ) {
Tcl_AppendResult(interp, "Error: \"", zConflict,
"\", conflict-algorithm must be one of: rollback, "
"abort, fail, ignore, or replace", 0);