diff --git a/app/Config/database.php.default b/app/Config/database.php.default index 9e0776b25..6ff70e819 100644 --- a/app/Config/database.php.default +++ b/app/Config/database.php.default @@ -49,7 +49,7 @@ * database. Uses database default not specified. * * sslmode => - * For Postgres specifies whether to 'disable', 'allow', 'prefer', or 'require' SSL for the + * For Postgres specifies whether to 'disable', 'allow', 'prefer', or 'require' SSL for the * connection. The default value is 'allow'. * * unix_socket => @@ -75,6 +75,15 @@ class DATABASE_CONFIG { 'database' => 'database_name', 'prefix' => '', //'encoding' => 'utf8', + + // PDO MySQL/SQLite Driver had the following backward incompatible changes in PHP 8.1 + // * https://www.php.net/manual/en/migration81.incompatible.php#migration81.incompatible.pdo.mysql + // * https://www.php.net/manual/en/migration81.incompatible.php#migration81.incompatible.pdo.sqlite + // If under PHP 8.1 and didn't use the following flags, adding them will cause integer and float columns + // in the result set to be strings as before. + // 'flags' => array( + // PDO::ATTR_STRINGIFY_FETCHES => true + // ) ); public $test = array( @@ -86,5 +95,9 @@ class DATABASE_CONFIG { 'database' => 'test_database_name', 'prefix' => '', //'encoding' => 'utf8', + + // 'flags' => array( + // PDO::ATTR_STRINGIFY_FETCHES => true + // ) ); }