Medoo icon indicating copy to clipboard operation
Medoo copied to clipboard

bug (?) in function get

Open fgusinde opened this issue 13 years ago • 0 comments

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; }

fgusinde avatar Sep 04 '13 09:09 fgusinde