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

Modal error message for empty string integer filter #198

Closed
qwesda opened this issue Mar 24, 2016 · 3 comments
Closed

Modal error message for empty string integer filter #198

qwesda opened this issue Mar 24, 2016 · 3 comments
Labels

Comments

@qwesda
Copy link

qwesda commented Mar 24, 2016

If you put an empty string as the input of a filter for an integer column you get this modal error message: Could not load table rows. The server said: invalid input syntax for integer: "".

Having an empty string as a filter makes of cause no sense, but this happens sometimes by hitting enter accidentally. Postico should just ignore these, not show an error message and load the rows as if no filter was set.

The modal dialog is even worse if it occurs in the foreign key row selector. The row selector closes immediately after the modal dialog sheet appears and there is no way of clearing the wrong filter. See attached gif:

modal dialog error

It is also confusing to me that Postico remembers the filters for tables and the foreign key row selector indefinitely. Postico should limit this to the current window. It's annoying to first remove any old filters, if you open a table that you worked in a week ago.

@qwesda
Copy link
Author

qwesda commented May 10, 2016

I could get rid of the dialog by manipulating posticos db:

> sqlite3 ~/Library/Containers/at.eggerapps.Postico/Data/Library/Application\ Support/Postico/ConnectionFavorites.db

then enter

DELETE FROM ZPGEPREFCONTAINERPROPERTY WHERE ZTYPE = 4;

@jakob
Copy link
Owner

jakob commented May 25, 2016

Thanks for reporting this issue; watching the GIF is slightly unnerving 😉

If fixed this now; Postico now displays the error message inline instead of a modal dialog.

This change will be in the next update, or you can download a dev build right now:
https://eggerapps-downloads.s3-eu-west-1.amazonaws.com/postico-1432.zip

@jakob jakob added the done label May 25, 2016
@jakob
Copy link
Owner

jakob commented Jun 1, 2016

Fixed in 1.0.7

@jakob jakob closed this as completed Jun 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants