aboutsummaryrefslogtreecommitdiff
path: root/tool/sqldiff.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2015-11-29 21:46:19 +0000
committerdrh <drh@noemail.net>2015-11-29 21:46:19 +0000
commit06db66f989d10807c66b0bc64d9ecdbe142e6b24 (patch)
tree20ef553392c805ea4507f1ca835985ea8477a8d7 /tool/sqldiff.c
parentb7e50ad55590416474a292e5233e2b2e8d4f46de (diff)
downloadsqlite-06db66f989d10807c66b0bc64d9ecdbe142e6b24.tar.gz
sqlite-06db66f989d10807c66b0bc64d9ecdbe142e6b24.zip
Fix the sqldiff utility program so that it works for schemas that have
tables with zero-length column names. FossilOrigin-Name: 64263ccb8f9835c615242de6e28db24f953422fa
Diffstat (limited to 'tool/sqldiff.c')
-rw-r--r--tool/sqldiff.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/sqldiff.c b/tool/sqldiff.c
index 0f406d8a0..56ff53ee2 100644
--- a/tool/sqldiff.c
+++ b/tool/sqldiff.c
@@ -155,6 +155,7 @@ static char *safeId(const char *zId){
"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) ){