mirror of
https://github.com/php/php-src.git
synced 2024-09-28 21:36:12 +00:00
cf46ac1179
Test case for unregistered bug on FB3 singleton selects Set error mode to warning instead of exception.
19 lines
599 B
PHP
19 lines
599 B
PHP
--TEST--
|
|
PDO_Firebird: cursor should not be marked as opened on singleton statements
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded('interbase') || !extension_loaded('pdo_firebird')) die('skip'); ?>
|
|
--FILE--
|
|
<?php
|
|
require 'testdb.inc';
|
|
$C = new PDO('firebird:dbname='.$test_base, $user, $password, [PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING]) or die;
|
|
@$C->exec('drop table ta_table');
|
|
$C->exec('create table ta_table (id integer)');
|
|
$S = $C->prepare('insert into ta_table (id) values (:id) returning id');
|
|
$S->execute(['id' => 1]);
|
|
$S->execute(['id' => 2]);
|
|
unset($S);
|
|
unset($C);
|
|
echo 'OK';
|
|
?>
|
|
--EXPECT--
|
|
OK
|