完善数据库驱动

This commit is contained in:
thinkphp
2016-04-16 15:07:29 +08:00
parent 6aa75b5d8a
commit c62bc8bca2
7 changed files with 14 additions and 8 deletions

View File

@@ -37,6 +37,7 @@ class Pgsql extends Connection
/**
* 取得数据表的字段信息
* @access public
* @param string $tableName
* @return array
*/
public function getFields($tableName)
@@ -46,6 +47,7 @@ class Pgsql extends Connection
$info = [];
if ($result) {
foreach ($result as $key => $val) {
$val = array_change_key_case($val);
$info[$val['field']] = [
'name' => $val['field'],
'type' => $val['type'],
@@ -62,6 +64,7 @@ class Pgsql extends Connection
/**
* 取得数据库的表信息
* @access public
* @param string $dbName
* @return array
*/
public function getTables($dbName = '')