xref: /PHP-7.3/ext/pdo_firebird/tests/bug_aaa.phpt (revision b746e698)
1--TEST--
2PDO_Firebird: cursor should not be marked as opened on singleton statements
3--SKIPIF--
4<?php if (!extension_loaded('interbase') || !extension_loaded('pdo_firebird')) die('skip'); ?>
5--FILE--
6<?php
7require 'testdb.inc';
8$C = new PDO('firebird:dbname='.$test_base, $user, $password, [PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING]) or die;
9@$C->exec('drop table ta_table');
10$C->exec('create table ta_table (id integer)');
11$S = $C->prepare('insert into ta_table (id) values (:id) returning id');
12$S->execute(['id' => 1]);
13$S->execute(['id' => 2]);
14unset($S);
15unset($C);
16echo 'OK';
17?>
18--EXPECT--
19OK
20