1--TEST--
2PDO_Firebird: Bug 72931 Insert returning fails on Firebird 3
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->exec('recreate table tablea (id integer)');
14$S = $dbh->prepare('insert into tablea (id) values (1) returning id');
15$S->execute();
16$D = $S->fetch(PDO::FETCH_NUM);
17echo $D[0];
18unset($S);
19unset($dbh);
20?>
21--EXPECT--
221
23