commit | 06db66f989d10807c66b0bc64d9ecdbe142e6b24 | [log] [tgz] |
---|---|---|
author | drh <drh@noemail.net> | Sun Nov 29 21:46:19 2015 +0000 |
committer | drh <drh@noemail.net> | Sun Nov 29 21:46:19 2015 +0000 |
tree | 20ef553392c805ea4507f1ca835985ea8477a8d7 | |
parent | b7e50ad55590416474a292e5233e2b2e8d4f46de [diff] [blame] |
Fix the sqldiff utility program so that it works for schemas that have tables with zero-length column names. FossilOrigin-Name: 64263ccb8f9835c615242de6e28db24f953422fa
diff --git a/tool/sqldiff.c b/tool/sqldiff.c index 0f406d8..56ff53e 100644 --- a/tool/sqldiff.c +++ b/tool/sqldiff.c
@@ -155,6 +155,7 @@ "WITH", "WITHOUT", }; int lwr, upr, mid, c, i, x; + if( zId[0]==0 ) return sqlite3_mprintf("\"\""); for(i=x=0; (c = zId[i])!=0; i++){ if( !isalpha(c) && c!='_' ){ if( i>0 && isdigit(c) ){