zussel / matador

Take your appclication by the horns
http://zussel.github.io/matador
GNU General Public License v3.0
63 stars 22 forks source link

mysql 8 res.empty() no rows in table ,but return false #118

Closed suisou closed 4 years ago

suisou commented 4 years ago
auto res = q
    .select()
    .where(id == 0)
    .execute(conn);

no rows in the table.

but res.empty() return false.

suisou commented 4 years ago

replace empty() with size()==0

zussel commented 4 years ago

That's right! Thanks for the hint. I'll fix this in the next release.

zussel commented 4 years ago

Fixed with commit e12c82a31aae9b3800e8ccf501e2dc6bd9c58a46.