G
G
Guy Fawkes2012-01-12 09:33:08
PHP
Guy Fawkes, 2012-01-12 09:33:08

Missing errors when executing a query through Mysqli::multi_query?

Can you please tell me if it is possible to skip errors/resume execution from the next statement when querying through multi_query, or will I have to use single queries through Mysqli::query? I execute DDL queries, and if an error occurs , not a syntactic one, but an error issued by the MySQL server, I just need to display it on the screen (issue it to STDERR, for example), and continue execution with the next statement.
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DeusModus, 2012-01-12
@guyfawkes

It's hard, yes.
Quote from the prepare documentation:
In general, parameters are legal only in Data Manipulation Language (DML) statements, and not in Data Definition Language (DDL) statements.

In general, a similar question was here (only there were still transactions dragged in) stack overflow .
It turns out that ,multi_query cannot do this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question