RangeError running example code.
From the example code here: https://pub.dev/packages/mysql1/example
Running this throws a RangeError on this line:
var result = await conn.query(
'insert into users (name, email, age) values (?, ?, ?)',
['Bob', '[email protected]', 25]);
RangeError (RangeError (byteOffset): Invalid value: Not in inclusive range 0..5: 7)
Running: macOS 8.0.25 MySQL Community Server dart 2.13.1
I'm having the exact same problem.
I'm getting the same error as well.
The same for me
it seems like a bug with the completer during the connect to the db. The override is to wait a while for the connection.
await MysqlConnection.connect(..);
await Future.delayed(Duration(seconds: 1));
Same here, running on Windows 10 Pro, MySQL Workbench CE 8.0.27, dart 2.14.4
+1
Getting the same error here...