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

Auto-generated code issue of parameters' sequence #399

Closed
elaunch-keval opened this issue Sep 16, 2020 · 2 comments
Closed

Auto-generated code issue of parameters' sequence #399

elaunch-keval opened this issue Sep 16, 2020 · 2 comments

Comments

@elaunch-keval
Copy link

This is Dao fun

@Query('UPDATE ShareApp SET isPresent = :isPresent WHERE appId = :appId')
  Future<void> updateShareApp(String appId, bool isPresent);

this is auto generated code

@override
  Future<void> updateShareApp(String appId, bool isPresent) async {
    await _queryAdapter.queryNoReturn(
        'UPDATE ShareApp SET isPresent = ? WHERE appId = ?',
        arguments: <dynamic>[
          appId,
          isPresent == null ? null : (isPresent ? 1 : 0)
        ]);
  }

It's taking fun parameters' sequence not in Query sequence

@mqus
Copy link
Collaborator

mqus commented Sep 16, 2020

This issue is known(#224) and will be solved with #361.

@mqus
Copy link
Collaborator

mqus commented Apr 23, 2021

This issue was solved with #509

@mqus mqus closed this as completed Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants