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:
Bruno Bee Nahorny 2023-11-04 02:45:07 -03:00 committed by Simon Binder
parent 0b0a721164
commit 398299e6e3
1 changed files with 1 additions and 1 deletions

View File

@ -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: