summaryrefslogtreecommitdiff
path: root/ext/pdo_firebird/tests/bug_72931.phpt
blob: 5e2e849ba4f731d8e6e73796d29990db0a439d03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
PDO_Firebird: Bug 72931 Insert returning fails on Firebird 3
--SKIPIF--
<?php require('skipif.inc'); ?>
--FILE--
<?php
require 'testdb.inc';

$dbh->exec('recreate table tablea (id integer)');
$S = $dbh->prepare('insert into tablea (id) values (1) returning id');
$S->execute();
$D = $S->fetch(PDO::FETCH_NUM);
echo $D[0];
unset($S);
unset($dbh);
?>
--EXPECT--
1