mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 07:12:47 +08:00
改进sqlsrv驱动
This commit is contained in:
@@ -74,6 +74,12 @@ class Sqlsrv extends Connection
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$sql = "SELECT column_name FROM information_schema.key_column_usage WHERE table_name='$tableName'";
|
||||||
|
$pdo = $this->linkID->query($sql);
|
||||||
|
$result = $pdo->fetch(PDO::FETCH_ASSOC);
|
||||||
|
if ($result) {
|
||||||
|
$info[$result['column_name']]['primary'] = true;
|
||||||
|
}
|
||||||
return $this->fieldCase($info);
|
return $this->fieldCase($info);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user