aboutsummaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2019-01-11 13:32:23 +0000
committerdrh <drh@noemail.net>2019-01-11 13:32:23 +0000
commit51d35b0fa9f636e4df2cb8751912dd01c310acd7 (patch)
treeec86dc5c9adcc33187e30fb0168b0c36274d9251 /src/util.c
parente65b9c6a5e2ff7a1de7bed378fe09157ce8e8525 (diff)
downloadsqlite-51d35b0fa9f636e4df2cb8751912dd01c310acd7.tar.gz
sqlite-51d35b0fa9f636e4df2cb8751912dd01c310acd7.zip
The keywords TRUE and FALSE should only act as boolean literal values if
unquoted. FossilOrigin-Name: 5547f39de993c708f72301ef25df190a2f007e0c4253799bdd9e86bb1ae41777
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index 54f9b9388..8432d897f 100644
--- a/src/util.c
+++ b/src/util.c
@@ -238,7 +238,7 @@ void sqlite3ErrorMsg(Parse *pParse, const char *zFormat, ...){
** dequoted string, exclusive of the zero terminator, if dequoting does
** occur.
**
-** 2002-Feb-14: This routine is extended to remove MS-Access style
+** 2002-02-14: This routine is extended to remove MS-Access style
** brackets from around identifiers. For example: "[a-b-c]" becomes
** "a-b-c".
*/
@@ -264,6 +264,11 @@ void sqlite3Dequote(char *z){
}
z[j] = 0;
}
+void sqlite3DequoteExpr(Expr *p){
+ assert( sqlite3Isquote(p->u.zToken[0]) );
+ p->flags |= p->u.zToken[0]=='"' ? EP_Quoted|EP_DblQuoted : EP_Quoted;
+ sqlite3Dequote(p->u.zToken);
+}
/*
** Generate a Token object from a string