cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

New Escaping System - Parse error near EOF

Open gyde opened this issue 13 years ago • 1 comments

Working with a model, using findFirst, since before 0.7.0 had the escaping system implementet (ISSUE 104), I used to do this when using findFirst:

SomeModel::findFirst('userid=89');

This now yields a:

Uncaught exception: exception 'Phalcon\Mvc\Model\Exception' with message 'Parsing error near to EOF'

If I remove the backticks, all is good, its easy enough when you know it, but the error message is kinda useless. Atleast I didn't understand it for a while.

Hopefully a better error syntax can be devised?

gyde avatar Dec 10 '12 19:12 gyde

I added a improvement in 0.8.0 to the error message sub-system, thanks

ghost avatar Dec 18 '12 20:12 ghost