From 6c7b5c0760f06dcebcdd0ef8008e61d19f8b1409 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Sun, 12 Jul 2020 17:49:36 +0200 Subject: [PATCH] Unbork tests for PDO_Firebird PDO_Firebird raises a warning regarding the unknown SQL syntax, which we have to silence to avoid run-tests.php to mark the test as borked. --- ext/pdo/tests/bug_79106.phpt | 2 +- ext/pdo/tests/bug_79106_collision.phpt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/pdo/tests/bug_79106.phpt b/ext/pdo/tests/bug_79106.phpt index 06e36aec74..42d96c5fcb 100644 --- a/ext/pdo/tests/bug_79106.phpt +++ b/ext/pdo/tests/bug_79106.phpt @@ -11,7 +11,7 @@ try { } catch (PDOException $e) { die('skip ' . $e->getMessage()); } -if ($db->query('SELECT 1 as "1"') === false) { +if (@$db->query('SELECT 1 as "1"') === false) { die('skip driver does not support quoted numeric identifiers'); } ?> diff --git a/ext/pdo/tests/bug_79106_collision.phpt b/ext/pdo/tests/bug_79106_collision.phpt index 8dcb9d997b..12ab609ed8 100644 --- a/ext/pdo/tests/bug_79106_collision.phpt +++ b/ext/pdo/tests/bug_79106_collision.phpt @@ -11,7 +11,7 @@ try { } catch (PDOException $e) { die('skip ' . $e->getMessage()); } -if ($db->query('SELECT 1 as "1"') === false) { +if (@$db->query('SELECT 1 as "1"') === false) { die('skip driver does not support quoted numeric identifiers'); } ?> -- 2.50.1