mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
改进sqlsrv驱动类parseKey方法
This commit is contained in:
@@ -70,7 +70,7 @@ class Sqlsrv extends Builder
|
|||||||
protected function parseKey($key, $options = [])
|
protected function parseKey($key, $options = [])
|
||||||
{
|
{
|
||||||
$key = trim($key);
|
$key = trim($key);
|
||||||
if (strpos($key, '.')) {
|
if (strpos($key, '.') && !preg_match('/[,\'\"\(\)\[\s]/', $key)) {
|
||||||
list($table, $key) = explode('.', $key, 2);
|
list($table, $key) = explode('.', $key, 2);
|
||||||
if (isset($options['alias'][$table])) {
|
if (isset($options['alias'][$table])) {
|
||||||
$table = $options['alias'][$table];
|
$table = $options['alias'][$table];
|
||||||
|
|||||||
Reference in New Issue
Block a user