aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authormistachkin <mistachkin@noemail.net>2013-06-21 18:32:11 +0000
committermistachkin <mistachkin@noemail.net>2013-06-21 18:32:11 +0000
commitf5fe3ae9e6ec813a0f015c990ddac7349a933467 (patch)
treefe707c5648260e826cb61bd85e9f08501ff2ca4c /src/expr.c
parent1654256ac892447558ff0587de76d5b53ac2b6f5 (diff)
parentb01e5b59a2e471d468e1854ef4de4b8f54f3bd6c (diff)
downloadsqlite-f5fe3ae9e6ec813a0f015c990ddac7349a933467.tar.gz
sqlite-f5fe3ae9e6ec813a0f015c990ddac7349a933467.zip
Merge updates from trunk.
FossilOrigin-Name: fa2a91e6c631864846484d13cffdc51856953cd1
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/expr.c b/src/expr.c
index a974c5a61..c1a27ebf8 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -116,12 +116,7 @@ CollSeq *sqlite3ExprCollSeq(Parse *pParse, Expr *pExpr){
}
assert( op!=TK_REGISTER || p->op2!=TK_COLLATE );
if( op==TK_COLLATE ){
- if( db->init.busy ){
- /* Do not report errors when parsing while the schema */
- pColl = sqlite3FindCollSeq(db, ENC(db), p->u.zToken, 0);
- }else{
- pColl = sqlite3GetCollSeq(pParse, ENC(db), 0, p->u.zToken);
- }
+ pColl = sqlite3GetCollSeq(pParse, ENC(db), 0, p->u.zToken);
break;
}
if( p->pTab!=0
@@ -1651,7 +1646,7 @@ int sqlite3FindInIndex(Parse *pParse, Expr *pX, int *prNotFound){
**
** If rMayHaveNull is zero, that means that the subquery is being used
** for membership testing only. There is no need to initialize any
-** registers to indicate the presense or absence of NULLs on the RHS.
+** registers to indicate the presence or absence of NULLs on the RHS.
**
** For a SELECT or EXISTS operator, return the register that holds the
** result. For IN operators or if an error occurs, the return value is 0.