1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Fix the sqldiff utility program so that it works for schemas that have

tables with zero-length column names.

FossilOrigin-Name: 64263ccb8f9835c615242de6e28db24f953422fa
This commit is contained in:
drh
2015-11-29 21:46:19 +00:00
parent b7e50ad555
commit 06db66f989
3 changed files with 8 additions and 7 deletions

View File

@ -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) ){