Skip to content

Commit 7713079

Browse files
committed
Update test expectation for different Firebird version
libfbclient 5.0.1 with server 4.0.1 has a different error message and code. > Read only sql transaction Closes GH-17565.
1 parent 5b06a06 commit 7713079

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/pdo_firebird/tests/transaction_access_mode.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ $dbh = getDbConnection();
135135
@$dbh->exec('DROP TABLE transaction_access_mode');
136136
unset($dbh);
137137
?>
138-
--EXPECT--
138+
--EXPECTF--
139139
========== Set attr in construct ==========
140140
OK: writable
141141
OK: readonly
@@ -157,7 +157,7 @@ array(1) {
157157
readonly
158158
bool(true)
159159
OK: readonly
160-
SQLSTATE[42000]: Syntax error or access violation: -817 attempted update during read-only transaction
160+
SQLSTATE[%r(42000|25006)%r]: %r(Read only sql transaction|Syntax error or access violation)%r: -817 attempted update during read-only transaction
161161
array(1) {
162162
[0]=>
163163
array(2) {

0 commit comments

Comments
 (0)