1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-18 10:21:03 +03:00

Fix two bugs that were causing lots of tests to fail. (CVS 1386)

FossilOrigin-Name: 5cba8a510c0aeae740db695e960c60e5f6c303f5
This commit is contained in:
danielk1977
2004-05-16 11:57:28 +00:00
parent a37cdde042
commit f9dd2c2e04
5 changed files with 15 additions and 15 deletions

View File

@@ -23,7 +23,7 @@
** ROLLBACK
** PRAGMA
**
** $Id: build.c,v 1.184 2004/05/16 11:15:36 danielk1977 Exp $
** $Id: build.c,v 1.185 2004/05/16 11:57:28 danielk1977 Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -787,7 +787,7 @@ char sqlite3AffinityType(const char *zType, int nType){
{"TEXT", 4, SQLITE_AFF_TEXT}
};
for(n=0; n<(nType-3); n++){
for(n=0; n<(nType-2); n++){
for(i=0; i<sizeof(substrings)/sizeof(substrings[0]); i++){
if( 0==sqlite3StrNICmp(zType, substrings[i].zSub, substrings[i].nSub) ){
return substrings[i].affinity;