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
diff --git a/src/resolve.c b/src/resolve.c
index 3f3ac93..24b54fa 100644
--- a/src/resolve.c
+++ b/src/resolve.c
@@ -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 @@
if( cnt==0 && zTab==0 && pColumnToken->z[0]=='"' ){
sqlite3DbFree(db, zCol);
pExpr->op = TK_STRING;
+ pExpr->pTab = 0;
return 0;
}