aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authormistachkin <mistachkin@noemail.net>2015-04-16 03:24:38 +0000
committermistachkin <mistachkin@noemail.net>2015-04-16 03:24:38 +0000
commitfb383e9229461dd883852418b6489c091cdce3cd (patch)
treee4ff7f3e1f80bbdaf23ead55a502796f58881aaa /src/expr.c
parent00eb70d89c427a6d0e86788346c8ddd6f93d6ec5 (diff)
parent22ecef5c20e007ae5121d9febb3bb3d7f56097b0 (diff)
downloadsqlite-fb383e9229461dd883852418b6489c091cdce3cd.tar.gz
sqlite-fb383e9229461dd883852418b6489c091cdce3cd.zip
Merge updates from trunk. Make OSTRACE changes work on Linux.
FossilOrigin-Name: cd1542664eb3eb46d486664ded49cd9c4bef3948
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/expr.c b/src/expr.c
index e6ac0f679..77eb35aa7 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -1691,7 +1691,7 @@ int sqlite3FindInIndex(Parse *pParse, Expr *pX, u32 inFlags, int *prRhsHasNull){
** ephemeral table.
*/
p = (ExprHasProperty(pX, EP_xIsSelect) ? pX->x.pSelect : 0);
- if( ALWAYS(pParse->nErr==0) && isCandidateForInOpt(p) ){
+ if( pParse->nErr==0 && isCandidateForInOpt(p) ){
sqlite3 *db = pParse->db; /* Database connection */
Table *pTab; /* Table <table>. */
Expr *pExpr; /* Expression <column> */
@@ -2016,6 +2016,7 @@ int sqlite3CodeSubselect(
pSel->pLimit = sqlite3PExpr(pParse, TK_INTEGER, 0, 0,
&sqlite3IntTokens[1]);
pSel->iLimit = 0;
+ pSel->selFlags &= ~SF_AllValues;
if( sqlite3Select(pParse, pSel, &dest) ){
return 0;
}