diff options
author | mistachkin <mistachkin@noemail.net> | 2015-02-12 22:45:25 +0000 |
---|---|---|
committer | mistachkin <mistachkin@noemail.net> | 2015-02-12 22:45:25 +0000 |
commit | a0efb1ae110ca9627afd7fbe88b8523105819e4e (patch) | |
tree | 91f8857d3f216da81766726667040a0b907a60d8 /src/shell.c | |
parent | 6728cd91807397e9948c691441b8f0d3bf6e1ff5 (diff) | |
download | sqlite-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.c | 2 |
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++; } } } |