Skip to content

Query.php public function getTableInfo($tableName = '', $fetch = '') bug #23

Open
@yhuaqiang

Description

@yhuaqiang

2009行.
$result = $this->table($tableName)->find();
if ($result instanceof Model) {
$result = $result->toArray();
}
$fields = array_keys($result);
当集合中数据为空时,$result为null,
导致array_keys($result);抛出异常array_keys() expects parameter 1 to be array, null given
希望修复

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions