mirror of
https://github.com/php/php-src.git
synced 2024-12-13 20:05:26 +08:00
Fix PDO_Firebird tests which assume ERRMODE_SILENT
These have apparently been missed when PR 5388[1] had been merged. [1] <https://github.com/php/php-src/pull/5388>
This commit is contained in:
parent
6c7b5c0760
commit
b6e70e14bd
@ -6,6 +6,7 @@ Bug #47415 PDO_Firebird segfaults when passing lowercased column name to bindCol
|
||||
<?php
|
||||
require 'testdb.inc';
|
||||
|
||||
$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);
|
||||
@$dbh->exec('DROP TABLE testz');
|
||||
$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
|
||||
|
||||
|
@ -9,6 +9,7 @@ require("testdb.inc");
|
||||
|
||||
$value = '2';
|
||||
|
||||
$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);
|
||||
@$dbh->exec('DROP TABLE testz');
|
||||
$dbh->exec('CREATE TABLE testz (A integer)');
|
||||
$dbh->exec("INSERT INTO testz VALUES ('1')");
|
||||
|
@ -7,6 +7,7 @@ PDO_Firebird: bug 53280 segfaults if query column count is less than param count
|
||||
|
||||
require("testdb.inc");
|
||||
|
||||
$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);
|
||||
@$dbh->exec('DROP TABLE testz');
|
||||
$dbh->exec('CREATE TABLE testz(A VARCHAR(30), B VARCHAR(30), C VARCHAR(30))');
|
||||
$dbh->exec("INSERT INTO testz VALUES ('A', 'B', 'C')");
|
||||
|
@ -7,6 +7,7 @@ PDO_Firebird: rowCount
|
||||
|
||||
require("testdb.inc");
|
||||
|
||||
$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);
|
||||
@$dbh->exec('DROP TABLE testz');
|
||||
$dbh->exec('CREATE TABLE testz (A VARCHAR(10))');
|
||||
$dbh->exec("INSERT INTO testz VALUES ('A')");
|
||||
|
Loading…
Reference in New Issue
Block a user