Index: src/prepare.c ================================================================== --- src/prepare.c +++ src/prepare.c @@ -714,10 +714,11 @@ ** Checks if the specified token is a table, column, or function name, ** based on the databases associated with the statement being prepared. ** If the function fails, zero is returned and pRc is filled with the ** error code. */ +#if 0 static int shouldTreatAsIdentifier( sqlite3 *db, /* Database handle. */ const char *zToken, /* Pointer to start of token to be checked */ int nToken, /* Length of token to be checked */ int *pRc /* Pointer to error code upon failure */ @@ -795,10 +796,11 @@ sqlite3_mutex_leave(db->mutex); done1: if( zId!=zSpace ) sqlite3DbFree(db, zId); return bFound; } +#endif /* ** Attempt to estimate the final output buffer size needed for the fully ** normalized version of the specified SQL string. This should take into ** account any potential expansion that could occur (e.g. via IN clauses @@ -970,23 +972,25 @@ } if( j>0 && sqlite3IsIdChar(z[j-1]) && sqlite3IsIdChar(zSql[i]) ){ z[j++] = ' '; } if( tokenType==TK_ID ){ - int i2 = i, n2 = n, rc = SQLITE_OK; + int i2 = i, n2 = n ;//, rc = SQLITE_OK; if( nParen>0 ){ assert( nParen