You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prepared sql = await connect.prepare("select * from users where name=?");
StreamedResults res = await sql.execute(["somename"]);
When I run the above code, Dart reports an error saying:
"Unhandled exception: type 'Future' is not a subtype of type 'FutureOr' in type cast“
I found this problem by simply changing the prepare function in the MysqlConnection class in "package:galileo_sqljocky5/internal/connection/impl.dart" to:
@override
Future<Prepared> prepare(String sql) async {
var query = await _socket.execHandler(PrepareHandler(sql), _timeout); // here
return PreparedImpl._(this, query);
}
That's it
The text was updated successfully, but these errors were encountered:
I have code like this:
When I run the above code, Dart reports an error saying:
"Unhandled exception: type 'Future' is not a subtype of type 'FutureOr' in type cast“
I found this problem by simply changing the prepare function in the MysqlConnection class in "package:galileo_sqljocky5/internal/connection/impl.dart" to:
That's it
The text was updated successfully, but these errors were encountered: