aboutsummaryrefslogtreecommitdiff
path: root/src/shell.c
diff options
context:
space:
mode:
authormistachkin <mistachkin@noemail.net>2015-02-12 22:45:25 +0000
committermistachkin <mistachkin@noemail.net>2015-02-12 22:45:25 +0000
commita0efb1ae110ca9627afd7fbe88b8523105819e4e (patch)
tree91f8857d3f216da81766726667040a0b907a60d8 /src/shell.c
parent6728cd91807397e9948c691441b8f0d3bf6e1ff5 (diff)
downloadsqlite-a0efb1ae110ca9627afd7fbe88b8523105819e4e.tar.gz
sqlite-a0efb1ae110ca9627afd7fbe88b8523105819e4e.zip
For the shell '.import' command, make sure the last column value present is considered before NULL filling any missing ones.
FossilOrigin-Name: 9c5bcad1f7d04c16f3ec7fc483280059ae93961b
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 77c9ab9e0..e0d0b78b7 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -3021,7 +3021,7 @@ static int do_meta_command(char *zLine, ShellState *p){
fprintf(stderr, "%s:%d: expected %d columns but found %d - "
"filling the rest with NULL\n",
sCtx.zFile, startLine, nCol, i+1);
- i++;
+ i += 2;
while( i<=nCol ){ sqlite3_bind_null(pStmt, i); i++; }
}
}