Medoo
Medoo copied to clipboard
bug (?) in function get
As I understand the get-function (0.8.5/0.8.6):
- if no where-clause is given no "limit 1" is set
- if a where-clause is given "limit 1" is set
But return is always only one row ($data[0])
So functional it is not necessary to use limit 1. I think people will use get-function only if they use a where-clause on primary key or unique index (e.g. user-id) so my wish is to delete the
if (is_array($where))
{ $where['LIMIT'] = 1; }