Lines Matching refs:zSql
1024 char *zSql = 0; in process_input() local
1028 while( fflush(p->out), (zLine = one_input_line(zSql, in))!=0 ){ in process_input()
1034 if( (zSql==0 || zSql[0]==0) && _all_whitespace(zLine) ) continue; in process_input()
1044 if( zSql==0 ){ in process_input()
1049 zSql = malloc( nSql+1 ); in process_input()
1050 strcpy(zSql, zLine); in process_input()
1054 zSql = realloc( zSql, nSql + len + 2 ); in process_input()
1055 if( zSql==0 ){ in process_input()
1059 strcpy(&zSql[nSql++], "\n"); in process_input()
1060 strcpy(&zSql[nSql], zLine); in process_input()
1064 if( zSql && _ends_with_semicolon(zSql, nSql) && sqlite_complete(zSql) ){ in process_input()
1067 rc = sqlite_exec(p->db, zSql, callback, p, &zErrMsg); in process_input()
1069 if( in!=0 && !p->echoOn ) printf("%s\n",zSql); in process_input()
1078 free(zSql); in process_input()
1079 zSql = 0; in process_input()
1083 if( zSql ){ in process_input()
1084 if( !_all_whitespace(zSql) ) printf("Incomplete SQL: %s\n", zSql); in process_input()
1085 free(zSql); in process_input()