1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

When a name in double quotes falls back to being a string literal,

make sure it has no affinity.  Ticket #3442. (CVS 5832)

FossilOrigin-Name: 81cfee5c14f241f5ae7f607d73b0b5cb821cda24
This commit is contained in:
drh
2008-10-19 21:03:27 +00:00
parent 39281b4b42
commit 1885d1c201
3 changed files with 10 additions and 9 deletions

View File

@ -14,7 +14,7 @@
** resolve all identifiers by associating them with a particular
** table and column.
**
** $Id: resolve.c,v 1.9 2008/10/11 16:47:36 drh Exp $
** $Id: resolve.c,v 1.10 2008/10/19 21:03:27 drh Exp $
*/
#include "sqliteInt.h"
#include <stdlib.h>
@ -320,6 +320,7 @@ static int lookupName(
if( cnt==0 && zTab==0 && pColumnToken->z[0]=='"' ){
sqlite3DbFree(db, zCol);
pExpr->op = TK_STRING;
pExpr->pTab = 0;
return 0;
}