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:
@ -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) ){
|
||||
|
Reference in New Issue
Block a user