xref: /PHP-8.2/ext/pdo_firebird/tests/bug_aaa.phpt (revision b5a14e6c)
1--TEST--
2PDO_Firebird: cursor should not be marked as opened on singleton statements
3--EXTENSIONS--
4pdo_firebird
5--SKIPIF--
6<?php require('skipif.inc'); ?>
7--ENV--
8LSAN_OPTIONS=detect_leaks=0
9--FILE--
10<?php
11require 'testdb.inc';
12
13$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
14@$dbh->exec('drop table ta_table');
15$dbh->exec('create table ta_table (id integer)');
16$S = $dbh->prepare('insert into ta_table (id) values (:id) returning id');
17$S->execute(['id' => 1]);
18$S->execute(['id' => 2]);
19unset($S);
20unset($dbh);
21echo 'OK';
22?>
23--EXPECT--
24OK
25