From 9f250cf772e011877bb0af420debe3ac7e143c6d Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 16 Mar 2023 10:59:34 +1300 Subject: [PATCH] MNT Remove references to PDO --- tests/bootstrap/environment.php | 2 +- tests/php/ORM/DatabaseTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/bootstrap/environment.php b/tests/bootstrap/environment.php index 6e2353836..b00f8c395 100644 --- a/tests/bootstrap/environment.php +++ b/tests/bootstrap/environment.php @@ -6,7 +6,7 @@ use SilverStripe\Core\Environment; if (!Environment::getEnv('SS_DATABASE_CLASS') && !Environment::getEnv('SS_DATABASE_USERNAME')) { // The default settings let us define the database config via environment vars - // Database connection, including PDO and legacy ORM support + // Database connection, including legacy ORM support switch (Environment::getEnv('DB')) { case "PGSQL"; $pgDatabaseClass = 'PostgreSQLDatabase'; diff --git a/tests/php/ORM/DatabaseTest.php b/tests/php/ORM/DatabaseTest.php index a1cda42b4..fb01e1085 100644 --- a/tests/php/ORM/DatabaseTest.php +++ b/tests/php/ORM/DatabaseTest.php @@ -193,7 +193,7 @@ class DatabaseTest extends SapphireTest $obj->MyInt = 5; $obj->MyFloat = 6.0; - // Note: in non-PDO SQLite, whole numbers of a decimal field will be returned as integers rather than floats + // Note: in SQLite, whole numbers of a decimal field will be returned as integers rather than floats $obj->MyDecimal = 7.1; $obj->MyBoolean = true; $obj->write();