report parser errors via mdb_sql_error()

This commit is contained in:
root
2010-06-20 23:12:32 -04:00
parent 472dfac7c5
commit f8f1b91b7d

View File

@@ -88,6 +88,7 @@ int yywrap()
void yyerror(char *s)
{
fprintf(stderr,"Error at Line : %s near %s\n", s, yytext);
mdb_sql_error(_mdb_sql(NULL), "%s near %s", s, yytext);
}
#if 0
int main(int argc, char **argv)