bug_72931.phpt 435 B

12345678910111213141516171819202122
  1. --TEST--
  2. PDO_Firebird: Bug 72931 Insert returning fails on Firebird 3
  3. --EXTENSIONS--
  4. pdo_firebird
  5. --SKIPIF--
  6. <?php require('skipif.inc'); ?>
  7. --ENV--
  8. LSAN_OPTIONS=detect_leaks=0
  9. --FILE--
  10. <?php
  11. require 'testdb.inc';
  12. $dbh->exec('recreate table tablea (id integer)');
  13. $S = $dbh->prepare('insert into tablea (id) values (1) returning id');
  14. $S->execute();
  15. $D = $S->fetch(PDO::FETCH_NUM);
  16. echo $D[0];
  17. unset($S);
  18. unset($dbh);
  19. ?>
  20. --EXPECT--
  21. 1