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