Skip to content

Commit 7361a12

Browse files
authored
ext/pdo_sqlite: explain statement prefixing with its class for errors. (#18846)
1 parent 43c18f3 commit 7361a12

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/pdo_sqlite/sqlite_statement.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ static int pdo_sqlite_stmt_set_attribute(pdo_stmt_t *stmt, zend_long attr, zval
431431
return 0;
432432
}
433433
if (Z_LVAL_P(zval) < 0 || Z_LVAL_P(zval) > 2) {
434-
zend_value_error("explain mode must be one of the EXPLAIN_MODE_* constants");
434+
zend_value_error("explain mode must be one of the Pdo\\Sqlite::EXPLAIN_MODE_* constants");
435435
return 0;
436436
}
437437
if (sqlite3_stmt_explain(S->stmt, (int)Z_LVAL_P(zval)) != SQLITE_OK) {

ext/pdo_sqlite/tests/subclasses/pdo_sqlite_getsetattr_explain.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,6 @@ array(2) {
395395
}
396396
explain mode must be of type int, string given
397397
explain mode must be of type int, Duh given
398-
explain mode must be one of the EXPLAIN_MODE_* constants
399-
explain mode must be one of the EXPLAIN_MODE_* constants
398+
explain mode must be one of the Pdo\Sqlite::EXPLAIN_MODE_* constants
399+
explain mode must be one of the Pdo\Sqlite::EXPLAIN_MODE_* constants
400400
bool(true)

0 commit comments

Comments
 (0)