-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Bug report
Describe the bug
Performing a select operation with a filter after deleting the last row in a table results in an error.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
- Insert an item
// Insert an item
await mockSupabase
.from('posts')
.insert({'id': 1, 'title': 'To be deleted'});
- Delete the item
await mockSupabase.from('posts').delete().eq('id', 1);
- Attempt to select an item with a filter
final posts = await mockSupabase.from('posts').select().eq('id', 1);
- Bad state no element error thrown when setting up
FilterParser.parseFilter
since the returning rows list is empty. See line 549.
Expected behavior
An empty array should be returned if the returningRows
list is empty when trying to apply filters.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working