ok, NOW it compiles

This commit is contained in:
anon 2024-02-15 22:08:57 +01:00
parent 9b96aa79f3
commit 63e827333a
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ EXEC{wsnl}+SQL{wsnl}+ {
; {
sql += yytext;
printf("Found SQL: \"%s\"\n", sql.c_str());
db->eval(sql.c_str());
db->exec(sql.c_str());
sql = "";
BEGIN INITIAL;
}

View File

@ -37,7 +37,7 @@ connect: CONNECT STRING AS STRING END { db->connect($2, $4); }
statement: STRING { statement_buffer += $1; }
| statement STRING { statement_buffer += $2; }
| statement END { db->eval(statement_buffer.c_str()); statement_buffer = ""; }
| statement END { db->exec(statement_buffer.c_str()); statement_buffer = ""; }
;
%%