Index: src/shell.c.in ================================================================== --- src/shell.c.in +++ src/shell.c.in @@ -7275,11 +7275,11 @@ static const char const *zTabFill = "\ INSERT INTO ColNames(name,nlen,chop,reps,suff)\ VALUES(iif(length(?1)>0,?1,'?'),max(length(?1),1),0,0,'')\ "; static const char const *zHasDupes = "\ -SELECT count(DISTINCT substring(name,1,nlen-chop)||suff)\ +SELECT count(DISTINCT (substring(name,1,nlen-chop)||suff) COLLATE NOCASE)\