mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
1c893b89bd
- This renames the environment variables to: PDO_FIREBIRD_TEST_XXX to be in line with other PDO test suites - Adds an skipif.inc file that skips the tests if no database is set - The test suite can now be run without PDO_FIREBIRD_TEST_HOSTNAME $ set PDO_FIREBIRD_TEST_HOSTNAME=localhost $ set PDO_FIREBIRD_TEST_DATABASE=C:\dev\php.fdb $ nmake test TESTS=ext/pdo_firebird/tests
21 lines
492 B
PHP
21 lines
492 B
PHP
--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
|