summaryrefslogtreecommitdiff
path: root/ext/pdo_firebird/tests/bug_aaa.phpt
blob: 2849cef36cb82a744b3c1b5d9d92cb2ac8f8284b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
PDO_Firebird: cursor should not be marked as opened on singleton statements
--SKIPIF--
<?php require('skipif.inc'); ?>
--FILE--
<?php
require 'testdb.inc';

$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
@$dbh->exec('drop table ta_table');
$dbh->exec('create table ta_table (id integer)');
$S = $dbh->prepare('insert into ta_table (id) values (:id) returning id');
$S->execute(['id' => 1]);
$S->execute(['id' => 2]);
unset($S);
unset($dbh);
echo 'OK';
?>
--EXPECT--
OK