[quote=93352:@Norman Palardy]note no error check after the prepare
that would help in future[/quote]
Not that I’ve ever seen. I always check for db.error, but it’s never been true. Always the error will be “Unable to Prepare” on select or execute.
Norman is this a bug that should be raised in FB? Simple typo’s like this are incredibly hard to debug cause you just don’t see the issue, there’s no way to look at the actual built statement for correction and it’s only found way down the track when you execute or select and then the error message is excrement! (Ha foiled the bad taste editor in this forum!)
[quote=93409:@Wayne Golding]Not that I’ve ever seen. I always check for db.error, but it’s never been true. Always the error will be “Unable to Prepare” on select or execute.
[/quote]
Actually you’re correct
It doesn’t actually send anything to the DB until you try to execute as a prepared statement is just a statement with placeholders
Correct my bad
You can’t check the error until you do the select or execute
I do wonder if we can get anything better than unable to prepare statement as an error message as that would have been really useful