In an old postI found a recomendation for a SQL parser I was searching for Lex and Yacc. Here is the link.
I later have found that it is the code that comes explained in the O'reilly book "lex & yacc.
I am trying to put it working and I have succesfully integrated in my aplication, but whenever I send an UPDATE command I get a syntax error, even with the simplest ones:
UPDATE user SET name = 'johnfoo'
I get the error on the = symbol. I have tried to trace everything but I cannot find why it gives this message. I have tried to analize the lex and yacc code and It makes no sense for me, as the code looks correct.
[UPDATE]The error I get is just:
1: syntax error at =
Embedded SQL parse failed
INSERT works perfectly.