o1lab / xmysql

xmysql is now https://github.com/nocodb/nocodb
https://github.com/nocodb/nocodb
MIT License
174 stars 55 forks source link

findOne doesn't work #20

Open michaelarnauts opened 5 years ago

michaelarnauts commented 5 years ago

It seems findOne doesn't work. By looking at the code, it seems that the listType isn't passed to the _getGrpByHavingOrderBy function, so the LIMIT 1 never happens.

See https://github.com/o1lab/xmysql/blob/master/lib/xsql.js#L1067

Please provide dev environment versions of your system