Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jaguar_query_sqljocky-2.2.4/adapter.dart - 'StreamedResults' can't be assigned to type Results #179

Open
Adenosperma1 opened this issue Mar 31, 2020 · 0 comments

Comments

@Adenosperma1
Copy link

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);
}

@Adenosperma1 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant