mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 07:12:47 +08:00
修正\think\db\Driver一处可能的BUG
This commit is contained in:
@@ -15,9 +15,9 @@ use PDO;
|
|||||||
use think\Config;
|
use think\Config;
|
||||||
use think\Db;
|
use think\Db;
|
||||||
use think\Debug;
|
use think\Debug;
|
||||||
|
use think\exception\DbBindParamException;
|
||||||
use think\exception\DbException;
|
use think\exception\DbException;
|
||||||
use think\exception\PDOException;
|
use think\exception\PDOException;
|
||||||
use think\exception\DbBindParamException;
|
|
||||||
use think\Log;
|
use think\Log;
|
||||||
|
|
||||||
abstract class Driver
|
abstract class Driver
|
||||||
@@ -266,7 +266,7 @@ abstract class Driver
|
|||||||
// 判断占位符
|
// 判断占位符
|
||||||
$sql = is_numeric($key) ?
|
$sql = is_numeric($key) ?
|
||||||
substr_replace($sql, $val, strpos($sql, '?'), 1) :
|
substr_replace($sql, $val, strpos($sql, '?'), 1) :
|
||||||
str_replace(':' . $key . ' ', $val . ' ', $sql);
|
str_replace(':' . $key . ' ', $val . ' ', $sql . ' ');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $sql;
|
return $sql;
|
||||||
|
|||||||
Reference in New Issue
Block a user