Index: third_party/sqlite/src/src/expr.c |
diff --git a/third_party/sqlite/src/src/expr.c b/third_party/sqlite/src/src/expr.c |
index 65f211e3aea228d5b5576cce6649e503a42e87e6..2d96c8d8e6cf452aa181214b2f177b2f9c7fb928 100644 |
--- a/third_party/sqlite/src/src/expr.c |
+++ b/third_party/sqlite/src/src/expr.c |
@@ -69,10 +69,11 @@ char sqlite3ExprAffinity(Expr *pExpr){ |
Expr *sqlite3ExprAddCollateToken( |
Parse *pParse, /* Parsing context */ |
Expr *pExpr, /* Add the "COLLATE" clause to this expression */ |
- const Token *pCollName /* Name of collating sequence */ |
+ const Token *pCollName, /* Name of collating sequence */ |
+ int dequote /* True to dequote pCollName */ |
){ |
if( pCollName->n>0 ){ |
- Expr *pNew = sqlite3ExprAlloc(pParse->db, TK_COLLATE, pCollName, 1); |
+ Expr *pNew = sqlite3ExprAlloc(pParse->db, TK_COLLATE, pCollName, dequote); |
if( pNew ){ |
pNew->pLeft = pExpr; |
pNew->flags |= EP_Collate|EP_Skip; |
@@ -86,7 +87,7 @@ Expr *sqlite3ExprAddCollateString(Parse *pParse, Expr *pExpr, const char *zC){ |
assert( zC!=0 ); |
s.z = zC; |
s.n = sqlite3Strlen30(s.z); |
- return sqlite3ExprAddCollateToken(pParse, pExpr, &s); |
+ return sqlite3ExprAddCollateToken(pParse, pExpr, &s, 0); |
} |
/* |