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:
parent
d860cb6556
commit
9f250cf772
tests
@ -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';
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user