Lines Matching refs:zSql
106 char *zSql;
112 zSql = sqlite_vmprintf(zFormat, ap);
116 if( verbose ) printf("QUERY %s: %s\n", zFile, zSql);
117 rc = sqlite_exec(db, zSql, db_query_callback, &sResult, &zErrMsg);
120 rc = sqlite_exec(db, zSql, db_query_callback, &sResult, &zErrMsg);
122 if( verbose ) printf("DONE %s %s\n", zFile, zSql);
124 fprintf(stdout,"%s: query failed: %s - %s\n", zFile, zSql, zErrMsg);
126 free(zSql);
129 sqlite_freemem(zSql);
141 char *zSql;
146 zSql = sqlite_vmprintf(zFormat, ap);
148 if( verbose ) printf("EXEC %s: %s\n", zFile, zSql);
149 rc = sqlite_exec(db, zSql, 0, 0, &zErrMsg);
152 rc = sqlite_exec(db, zSql, 0, 0, &zErrMsg);
154 if( verbose ) printf("DONE %s: %s\n", zFile, zSql);
156 fprintf(stdout,"%s: command failed: %s - %s\n", zFile, zSql, zErrMsg);
158 sqlite_freemem(zSql);
161 sqlite_freemem(zSql);