aboutsummaryrefslogtreecommitdiff
path: root/src/shell.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2013-10-11 16:35:49 +0000
committerdrh <drh@noemail.net>2013-10-11 16:35:49 +0000
commit3432daa8b2ec4cde8291a35f13a2cd887e6b8c67 (patch)
treea53d12cf0c51871c0c57837b3383230db03348dd /src/shell.c
parent4f991890510bbc30a83f1ef1f70c080a09b45b1a (diff)
downloadsqlite-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/shell.c')
-rw-r--r--src/shell.c2
1 files changed, 1 insertions, 1 deletions
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);