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
Future<List<User>> getUsers() async {
final conn = await MySqlConnection.connect(Config.dbConnectionSettings);
const query = "CALL `getUsers`();";
final results = await conn.query(query);
final List<User> users = [];
for (var row in results) {
users.add(User.fromRow(row));
}
await conn.close();
return users;
}
It works but bring up a WARNING:
[WARNING] MySqlConnection: Error sending quit on connection Bad state: Cannot write to socket, it is closed #0 BufferedSocket.writeBufferPart (package:mysql1/src/buffered_socket.dart:119:7)
This warning only appears if stored procedure is used.
Any suggest to avoid it?
Thanks
The text was updated successfully, but these errors were encountered:
Hi. I'm trying to call a simple stored procedure:
It works but bring up a WARNING:
[WARNING] MySqlConnection: Error sending quit on connection Bad state: Cannot write to socket, it is closed #0 BufferedSocket.writeBufferPart (package:mysql1/src/buffered_socket.dart:119:7)
This warning only appears if stored procedure is used.
Any suggest to avoid it?
Thanks
The text was updated successfully, but these errors were encountered: