1
0
mirror of https://github.com/silverstripe/silverstripe-framework synced 2024-10-22 14:05:37 +02:00

MNT Remove references to PDO

This commit is contained in:
Steve Boyd 2023-03-16 10:59:34 +13:00
parent d860cb6556
commit 9f250cf772
2 changed files with 2 additions and 2 deletions
tests

View File

@ -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';

View File

@ -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();