-
Notifications
You must be signed in to change notification settings - Fork 1
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
Connector - PostgreSQL - no auto-completion, boolean value not displayed #6
Comments
If it can help to better understand what I say on linuxfr ;) About boolean value:
select user_id,is_active,is_deleted,auth_type from users;
About auto-completion:auto-completion_not.purpose.mp4 |
And if I open console view, nothing visible in the left bar, and if I click on refresh button, I can seen this error message: Unable to load this connector. And If I try to execute sql request, I can see this message: Une erreur s'est produite. |
Ok, thanks for the feedback. |
Hi @PhilippeAccorsi, I rebuilt latest rootdbapp/rootdb image with updated rootdbapp/rootdb-nginx-php-fpm-supervisor image, now containing the missing package (also updated to php 8.2.18) and I made a test with prod image. Just for log, it should works like this : Some notes :
So, if you have no tables listed in the connector configuration form, auto-completion & co won't work. Finally, I was also able to reproduce this error, with a real prod postgre database - credentials are ok, tables & view are ok, but I can't fetch the database structure, and get the same sql error. |
Hi @PhilippeAccorsi , When you will have some time, you can test the rootdbapp/rootdb:dev image containing some fixes for this connector :
About the boolean values not displayed, which is normal since the PHP module return real boolean values, it will be fixed on the frontend side: frontend - #14 SELECT *, CASE WHEN boolean_column THEN 't' ELSE 'f' END AS boolean_column FROM a_table; |
Thanks for the answer. I think I can test that next week :) |
I have tested with dev docker image and I can seen all table on the left bar in the console view \o/ But I don't have autocompletion in console form. If I write "select * from us" i not seen users in list, but users table exist. If I write "select * from users" i have the correct result. If I doubleclick on the left, I can seen results. autocompletion_not_work.mp4Regards, |
Just to be sure before I investigate further, did you use |
I have tested with CTRL+SPACE but this not change anything in the list. I don't know if I make something wrong in the first test or if something wrong after first connection to the database (double click works to execute request so I not really understand why reload is necessary). :) |
Ok, thanks a lot for the update. You did nothing wrong, here what I suspect:
So, yep :
|
I think the auto-completes refresh issue is fixed. For log it's not what I think it was initially: it's just that the local storage of the web browser already got an empty array of auto-completes. Now we check if this array is emply or not when the CustomEditor is displayed and perform a auto-completes refresh if needed. |
… real boolean values displayed as string for Postgres.
Hi @PhilippeAccorsi, Just to let you know that boolean values shoud be displayed as the CLI stdout ( |
We should check this connector to be sure that :
The text was updated successfully, but these errors were encountered: