1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-03 16:53:36 +03:00

:-) (CVS 68)

FossilOrigin-Name: fc8d25ea1fffa115fad15b9eb8bb0b0aaaff0431
This commit is contained in:
drh
2000-06-07 02:04:22 +00:00
parent 73755922df
commit 670f74f502
4 changed files with 13 additions and 12 deletions

View File

@@ -24,7 +24,7 @@
** This file contains code to implement the "sqlite" command line
** utility for accessing SQLite databases.
**
** $Id: shell.c,v 1.11 2000/06/07 01:33:42 drh Exp $
** $Id: shell.c,v 1.12 2000/06/07 02:04:23 drh Exp $
*/
#include <stdlib.h>
#include <string.h>
@@ -212,7 +212,7 @@ static int callback(void *pArg, int nArg, char **azArg, char **azCol){
}
if( z[j] ){
fprintf(p->out, "\\%c", z[j]);
z = &z[j+1];
z++;
}
z += j;
}
@@ -256,6 +256,7 @@ static int dump_callback(void *pArg, int nArg, char **azArg, char **azCol){
char zSql[1000];
d2 = *pData;
d2.mode = MODE_List;
d2.escape = '\t';
strcpy(d2.separator,"\t");
fprintf(pData->out, "COPY '%s' FROM STDIN;\n", azArg[0]);
sprintf(zSql, "SELECT * FROM '%s'", azArg[0]);