29 lines
548 B
PHP
29 lines
548 B
PHP
--TEST--
|
|
PDO_Firebird: Bug 72931 Insert returning fails on Firebird 3
|
|
--EXTENSIONS--
|
|
pdo_firebird
|
|
--SKIPIF--
|
|
<?php require('skipif.inc'); ?>
|
|
--FILE--
|
|
<?php
|
|
require 'testdb.inc';
|
|
|
|
$dbh = getDbConnection();
|
|
$dbh->exec('recreate table test72931 (id integer)');
|
|
$S = $dbh->prepare('insert into test72931 (id) values (1) returning id');
|
|
$S->execute();
|
|
$D = $S->fetch(PDO::FETCH_NUM);
|
|
echo $D[0];
|
|
unset($S);
|
|
unset($dbh);
|
|
?>
|
|
--CLEAN--
|
|
<?php
|
|
require 'testdb.inc';
|
|
$dbh = getDbConnection();
|
|
@$dbh->exec("DROP TABLE test72931");
|
|
unset($dbh);
|
|
?>
|
|
--EXPECT--
|
|
1
|