Commit 984ee867 authored by luhongguang's avatar luhongguang
parents 29c27e3d 8d372f10
......@@ -1459,7 +1459,7 @@ class Medoo
return $result;
}
public function insert($table, $datas)
public function insert($table, $datas, $options = null)
{
$stack = [];
$columns = [];
......
......@@ -206,6 +206,7 @@ abstract class MysqlBase
\PDO::ATTR_STRINGIFY_FETCHES => false,
\PDO::ATTR_EMULATE_PREPARES => false,
\PDO::ATTR_CASE => \PDO::CASE_NATURAL,
\PDO::ATTR_ORACLE_NULLS => \PDO::NULL_TO_STRING,
\PDO::ATTR_TIMEOUT => intval(self::$iniConf['connect_timeout'] ?? 10)
], $options)
];
......
......@@ -242,6 +242,7 @@ abstract class MysqlClusterBase
\PDO::ATTR_STRINGIFY_FETCHES => false,
\PDO::ATTR_EMULATE_PREPARES => false,
\PDO::ATTR_CASE => \PDO::CASE_NATURAL,
\PDO::ATTR_ORACLE_NULLS => \PDO::NULL_TO_STRING,
\PDO::ATTR_TIMEOUT => intval(self::$iniConf['connect_timeout'] ?? 10)
], $options)
];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment