mysql.dart icon indicating copy to clipboard operation
mysql.dart copied to clipboard

isNotEmpty and isEmpty Not Working appropriately

Open wellspinto-repositorio opened this issue 1 year ago • 0 comments

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 { ... }

wellspinto-repositorio avatar Nov 24 '23 10:11 wellspinto-repositorio