zim32 / mysql.dart

MySQL client for Dart written in Dart
BSD 3-Clause "New" or "Revised" License
64 stars 17 forks source link

isNotEmpty and isEmpty Not Working appropriately #59

Open wellspinto-repositorio opened 7 months ago

wellspinto-repositorio commented 7 months ago

Hi,

isNotEmpty and isEmpty do not work correctly, only if we insert a print beforehand.

Ex.:

--- Open connection ...

final IResultSet result = await conn.execute('SELECT field FROM table;');

// Here! If I don't put the print, it doesn't enter isNotEmpty, remembering that the table is not empty. debugPrint('anything');

If (result.isNotEmpty) { ... } else { ... }