diff options
author | drh <drh@noemail.net> | 2013-10-11 16:35:49 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2013-10-11 16:35:49 +0000 |
commit | 3432daa8b2ec4cde8291a35f13a2cd887e6b8c67 (patch) | |
tree | a53d12cf0c51871c0c57837b3383230db03348dd /src | |
parent | 4f991890510bbc30a83f1ef1f70c080a09b45b1a (diff) | |
download | sqlite-3432daa8b2ec4cde8291a35f13a2cd887e6b8c67.tar.gz sqlite-3432daa8b2ec4cde8291a35f13a2cd887e6b8c67.zip |
Additional test cases and requirements marks for the unlikely(),
likelihood() and instr() functions.
FossilOrigin-Name: 5f01cd36ee8678a07b79f9e01855daffb6bb8c43
Diffstat (limited to 'src')
-rw-r--r-- | src/resolve.c | 4 | ||||
-rw-r--r-- | src/shell.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/resolve.c b/src/resolve.c index eacffc540..dfe4b84c4 100644 --- a/src/resolve.c +++ b/src/resolve.c @@ -707,6 +707,10 @@ static int resolveExprStep(Walker *pWalker, Expr *pExpr){ pNC->nErr++; } }else{ + /* EVIDENCE-OF: R-61304-29449 The unlikely(X) function is equivalent to + ** likelihood(X, 0.0625). + ** EVIDENCE-OF: R-35738-39582 The unlikely(X) fucntion is short-hand for + ** likelihood(X,0.0625). */ pExpr->iTable = 62; /* TUNING: Default 2nd arg to unlikely() is 0.0625 */ } } diff --git a/src/shell.c b/src/shell.c index 9f0e3530b..41ea56492 100644 --- a/src/shell.c +++ b/src/shell.c @@ -1204,7 +1204,7 @@ static int shell_exec( /* extract the data and data types */ for(i=0; i<nCol; i++){ aiTypes[i] = x = sqlite3_column_type(pStmt, i); - if( x==SQLITE_BLOB && pArg->mode==MODE_Insert ){ + if( x==SQLITE_BLOB && pArg && pArg->mode==MODE_Insert ){ azVals[i] = ""; }else{ azVals[i] = (char*)sqlite3_column_text(pStmt, i); |