mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
ext/pdo_sqlite: explain statement prefixing with its class for errors. (#18846)
This commit is contained in:
parent
43c18f3cfe
commit
7361a1206d
2 changed files with 3 additions and 3 deletions
|
@ -431,7 +431,7 @@ static int pdo_sqlite_stmt_set_attribute(pdo_stmt_t *stmt, zend_long attr, zval
|
|||
return 0;
|
||||
}
|
||||
if (Z_LVAL_P(zval) < 0 || Z_LVAL_P(zval) > 2) {
|
||||
zend_value_error("explain mode must be one of the EXPLAIN_MODE_* constants");
|
||||
zend_value_error("explain mode must be one of the Pdo\\Sqlite::EXPLAIN_MODE_* constants");
|
||||
return 0;
|
||||
}
|
||||
if (sqlite3_stmt_explain(S->stmt, (int)Z_LVAL_P(zval)) != SQLITE_OK) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue