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
Error: A value of type 'StreamedResults' can't be assigned to a variable of type 'Results'.
Fix: Need to destream before setting to results
Find all occurances in adapter of this line :
sj.Results results = await _connection.execute(stStr);
Replace with this::
sj.Results results = await destream(await _connection.execute(stStr));;
Using this method to destream.
Future destream(StreamedResults r) async {
var rows = await r.toList();
return Results(rows, r.fields, r.insertId, r.affectedRows);
}
The text was updated successfully, but these errors were encountered:
Adenosperma1
changed the title
jaguar_query_sqljocky StreamResults can't be assigned to type Results
jaguar_query_sqljocky-2.2.4/adapter.dart - 'StreamedResults' can't be assigned to type Results
Mar 31, 2020
File: jaguar_query_sqljocky-2.2.4/lib/src/adapter.dart
Error: A value of type 'StreamedResults' can't be assigned to a variable of type 'Results'.
Fix: Need to destream before setting to results
Find all occurances in adapter of this line :
sj.Results results = await _connection.execute(stStr);
Replace with this::
sj.Results results = await destream(await _connection.execute(stStr));;
Using this method to destream.
Future destream(StreamedResults r) async {
var rows = await r.toList();
return Results(rows, r.fields, r.insertId, r.affectedRows);
}
The text was updated successfully, but these errors were encountered: