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

No stream updates with quoted table name #833

Open
marek-dabek opened this issue Jun 5, 2024 · 0 comments
Open

No stream updates with quoted table name #833

marek-dabek opened this issue Jun 5, 2024 · 0 comments

Comments

@marek-dabek
Copy link

Background

Since some of my column/table names conflict with SQLite's list of reserved keywords I just started quoting every identifier. That causes all my streams to silently fail.

Example

  @Query('SELECT * FROM "table_name"')
  Stream<List<Data>> listAll();

Expected behavior

Stream event published when whenever rows are modified.

Actual behavior

Stream event is not published whenever table rows are modified.

Cause

After lots of debugging I found the culprit. It's the code that parses the SQL query to extract the table names used.

Possible solutions

  1. Fix the parser Regexp to include "quoted_table_names"
  2. Allow users to manually pass the list of tables used in the query
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

1 participant