mirror of
https://gitee.com/mix-php/mix.git
synced 2024-11-29 18:28:00 +08:00
feat:examples: \PDO::ATTR_EMULATE_PREPARES => false
This commit is contained in:
parent
d06e4fa983
commit
852c8abcb4
@ -38,7 +38,7 @@ class DB
|
||||
$password = $_ENV['DATABASE_PASSWORD'];
|
||||
$db = new Database($dsn, $username, $password, [
|
||||
\PDO::ATTR_DEFAULT_FETCH_MODE => \PDO::FETCH_ASSOC,
|
||||
\PDO::ATTR_EMULATE_PREPARES => false
|
||||
// \PDO::ATTR_EMULATE_PREPARES => false
|
||||
]);
|
||||
APP_DEBUG and $db->setLogger(new DBLogger());
|
||||
self::$instance = $db;
|
||||
|
@ -38,7 +38,7 @@ class DB
|
||||
$password = $_ENV['DATABASE_PASSWORD'];
|
||||
$db = new Database($dsn, $username, $password, [
|
||||
\PDO::ATTR_DEFAULT_FETCH_MODE => \PDO::FETCH_ASSOC,
|
||||
\PDO::ATTR_EMULATE_PREPARES => false
|
||||
// \PDO::ATTR_EMULATE_PREPARES => false
|
||||
]);
|
||||
APP_DEBUG and $db->setLogger(new DBLogger());
|
||||
self::$instance = $db;
|
||||
|
@ -38,7 +38,7 @@ class DB
|
||||
$password = $_ENV['DATABASE_PASSWORD'];
|
||||
$db = new Database($dsn, $username, $password, [
|
||||
\PDO::ATTR_DEFAULT_FETCH_MODE => \PDO::FETCH_ASSOC,
|
||||
\PDO::ATTR_EMULATE_PREPARES => false
|
||||
// \PDO::ATTR_EMULATE_PREPARES => false
|
||||
]);
|
||||
APP_DEBUG and $db->setLogger(new DBLogger());
|
||||
self::$instance = $db;
|
||||
|
@ -38,7 +38,7 @@ class DB
|
||||
$password = $_ENV['DATABASE_PASSWORD'];
|
||||
$db = new Database($dsn, $username, $password, [
|
||||
\PDO::ATTR_DEFAULT_FETCH_MODE => \PDO::FETCH_ASSOC,
|
||||
\PDO::ATTR_EMULATE_PREPARES => false
|
||||
// \PDO::ATTR_EMULATE_PREPARES => false
|
||||
]);
|
||||
APP_DEBUG and $db->setLogger(new DBLogger());
|
||||
self::$instance = $db;
|
||||
|
@ -38,7 +38,7 @@ class DB
|
||||
$password = $_ENV['DATABASE_PASSWORD'];
|
||||
$db = new Database($dsn, $username, $password, [
|
||||
\PDO::ATTR_DEFAULT_FETCH_MODE => \PDO::FETCH_ASSOC,
|
||||
\PDO::ATTR_EMULATE_PREPARES => false
|
||||
// \PDO::ATTR_EMULATE_PREPARES => false
|
||||
]);
|
||||
APP_DEBUG and $db->setLogger(new DBLogger());
|
||||
self::$instance = $db;
|
||||
|
Loading…
Reference in New Issue
Block a user