已经提了
https://github.com/nutzam/nutz/issues/1180
现在这种用法也十分蛋疼。
Record fetch = dao.fetch("biz_dev_kilometers", Cnd.NEW().groupBy("day").asc("day"));
结果后台报错
org.nutz.dao.DaoException: !Nutz SQL Error: 'SELECT * FROM biz_dev_kilometers GROUP BY day ORDER BY day ASC LIMIT 0, 1 '
PreparedStatement:
'SELECT * FROM biz_dev_kilometers GROUP BY day ORDER BY day ASC LIMIT 0, 1 '
CaseMessage=Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'fpiddb.biz_dev_kilometers.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
要是能过滤,是不是这个问题也能解决?