1
This commit is contained in:
@@ -1038,10 +1038,6 @@ class Query
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function close(){
|
||||
return $this->connection->close();
|
||||
}
|
||||
|
||||
/**
|
||||
* 指定OR查询条件
|
||||
* @access public
|
||||
@@ -1956,7 +1952,7 @@ class Query
|
||||
if (!empty($this->pk)) {
|
||||
$pk = $this->pk;
|
||||
} else {
|
||||
$pk = $this->getTableInfo(is_array($options) ? $options['table'] : $options, 'pk');
|
||||
$pk = $this->getTableInfo(is_array($options) && isset($options['table']) ? $options['table'] : $options, 'pk');
|
||||
}
|
||||
return $pk;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user