Lines Matching refs:zFile
1765 static FILE *output_file_open(const char *zFile){ in output_file_open() argument
1767 if( strcmp(zFile,"stdout")==0 ){ in output_file_open()
1769 }else if( strcmp(zFile, "stderr")==0 ){ in output_file_open()
1771 }else if( strcmp(zFile, "off")==0 ){ in output_file_open()
1774 f = fopen(zFile, "wb"); in output_file_open()
1776 fprintf(stderr, "Error: cannot open \"%s\"\n", zFile); in output_file_open()
1804 const char *zFile; /* Name of the input file */ member
1872 p->zFile, p->nLine, cQuote); in csv_read_one_field()
1876 p->zFile, startLine, cQuote); in csv_read_one_field()
2132 char *zFile = azArg[1]; /* Name of file to extra content from */ in do_meta_command() local
2156 sCsv.zFile = zFile; in do_meta_command()
2158 if( sCsv.zFile[0]=='|' ){ in do_meta_command()
2159 sCsv.in = popen(sCsv.zFile+1, "r"); in do_meta_command()
2160 sCsv.zFile = "<pipe>"; in do_meta_command()
2163 sCsv.in = fopen(sCsv.zFile, "rb"); in do_meta_command()
2167 fprintf(stderr, "Error: cannot open \"%s\"\n", zFile); in do_meta_command()
2191 fprintf(stderr,"%s: empty file\n", sCsv.zFile); in do_meta_command()
2250 sCsv.zFile, startLine, nCol, i+1); in do_meta_command()
2262 sCsv.zFile, startLine, nCol, i); in do_meta_command()
2268 fprintf(stderr, "%s:%d: INSERT failed: %s\n", sCsv.zFile, startLine, in do_meta_command()
2345 const char *zFile, *zProc; in do_meta_command() local
2347 zFile = azArg[1]; in do_meta_command()
2350 rc = sqlite3_load_extension(p->db, zFile, zProc, &zErrMsg); in do_meta_command()
2360 const char *zFile = azArg[1]; in do_meta_command() local
2362 p->pLog = output_file_open(zFile); in do_meta_command()