mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-05 04:30:38 +03:00
Make sure the .import command strips newlines off the end of the last
field in each line imported. Ticket #1348 (CVS 2578) FossilOrigin-Name: 73fafd2148b8cd0f92747fca03e3df5778e1070f
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
** This file contains code to implement the "sqlite" command line
|
||||
** utility for accessing SQLite databases.
|
||||
**
|
||||
** $Id: shell.c,v 1.122 2005/02/23 12:35:41 drh Exp $
|
||||
** $Id: shell.c,v 1.123 2005/08/05 18:50:52 drh Exp $
|
||||
*/
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -1093,6 +1093,7 @@ static int do_meta_command(char *zLine, struct callback_data *p){
|
||||
}
|
||||
}
|
||||
}
|
||||
*z = 0;
|
||||
if( i+1!=nCol ){
|
||||
fprintf(stderr,"%s line %d: expected %d columns of data but found %d\n",
|
||||
zFile, lineno, nCol, i+1);
|
||||
|
||||
Reference in New Issue
Block a user