diff options
author | drh <> | 2021-03-23 16:34:13 +0000 |
---|---|---|
committer | drh <> | 2021-03-23 16:34:13 +0000 |
commit | ed42b9805676de40a417d9d860295fc8134c80b0 (patch) | |
tree | 452a9eaef23ca9dce5bdb4ace647f17c48747d7d /src/resolve.c | |
parent | 46bee2aa12bf48712f3ae31f74cbc8d3771a87bb (diff) | |
parent | 1fffa73ea2f06bf4c748f9d7ee6dda40e2ac6e7f (diff) | |
download | sqlite-ed42b9805676de40a417d9d860295fc8134c80b0.tar.gz sqlite-ed42b9805676de40a417d9d860295fc8134c80b0.zip |
When doing schema updates, try to convert (incorrect) double-quoted strings
into (SQL-standard) single-quoted strings.
FossilOrigin-Name: 0770470488e140fa21cb5097c26d58e21da85544af8b69faced1670bbc6d6089
Diffstat (limited to 'src/resolve.c')
-rw-r--r-- | src/resolve.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/resolve.c b/src/resolve.c index ee75d2acb..32914befb 100644 --- a/src/resolve.c +++ b/src/resolve.c @@ -559,7 +559,6 @@ static int lookupName( assert( pExpr->op==TK_ID ); if( ExprHasProperty(pExpr,EP_DblQuoted) && areDoubleQuotedStringsEnabled(db, pTopNC) - && (db->init.bDropColumn==0 || sqlite3StrICmp(zCol, db->init.azInit[0])!=0) ){ /* If a double-quoted identifier does not match any known column name, ** then treat it as a string. @@ -574,11 +573,6 @@ static int lookupName( ** Someday, I hope to get rid of this hack. Unfortunately there is ** a huge amount of legacy SQL that uses it. So for now, we just ** issue a warning. - ** - ** 2021-03-15: ticket 1c24a659e6d7f3a1 - ** Do not do the ID-to-STRING conversion when doing the schema - ** sanity check following a DROP COLUMN if the identifer name matches - ** the name of the column being dropped. */ sqlite3_log(SQLITE_WARNING, "double-quoted string literal: \"%w\"", zCol); |