mirror of https://github.com/AMT-Cheif/drift.git
Fix integer nullable cast in protocol serializer
Since the class ExecuteBatchedStatement accepts nullable executorId it looks like it should cast to nullable int. It occours using Isolate from multiple Flutter engines.
This commit is contained in:
parent
0b0a721164
commit
398299e6e3
|
@ -191,7 +191,7 @@ class DriftProtocol {
|
|||
list[0] as int, list.skip(1).toList()));
|
||||
}
|
||||
|
||||
final executorId = fullMessage.last as int;
|
||||
final executorId = fullMessage.last as int?;
|
||||
return ExecuteBatchedStatement(
|
||||
BatchedStatements(sql, args), executorId);
|
||||
case _tag_RunTransactionAction:
|
||||
|
|
Loading…
Reference in New Issue