top-think / think-orm

Think ORM——the PHP Database&ORM Framework
Apache License 2.0
413 stars 171 forks source link

[BUG] 使用PGSQL 查询数据库时,使用函数 Find 返回数据始终为NULL #589

Closed luotianyil closed 1 month ago

luotianyil commented 1 month ago

使用PGSQL 查询数据库时,使用函数 Find 返回数据始终为NULL

查询代码如下: Db::connect('pgsql') -> table('table_name') -> find();

当指定条件后查询结果返回正常 Db::connect('pgsql') -> table('table_name') -> where([ 'id' => 1 ]) -> find();

big-dream commented 1 month ago

如果没有任何的查询条件 并且也没有调用order方法的话 ,find查询不会返回任何结果。