Closed KKould closed 8 months ago
@KKould Thank you for reporting this. I don't have an IDEA so I may need more information from you.
@KKould Thank you for reporting this. I don't have an IDEA so I may need more information from you.
- Did you seen any panic from the server side?
- Could you please use wireshark to capture the traffic when you do connection test?
Tips: This is my first time using this, maybe I'm using it incorrectly
Thank you! Are you capturing the right net interface? If your server is listening to localhost, you need to capture loopback.
Oh, it seems I chose the wrong network card. I exported this file from wireshark.
Fixed in #163
@sunng87 There were some misunderstandings. After I used this pr to fix them, I just prevented the server from throwing errors, but it still prompted ClientInfo property not supported
.
Sorry, let me reopen this. I will find time to analyse your captured packets.
From the paccap I saw IDEA sends a query select version()
via extended subprotocol under the hood. This query is not supported by sqlite so it does not reply a result that IDEA expects.
From the paccap I saw IDEA sends a query
select version()
via extended subprotocol under the hood. This query is not supported by sqlite so it does not reply a result that IDEA expects.
Is there a way for sqlite to support it?
We don't have to support it in sqlite. You can add a layer on top of statement::query
to process these queries out of sqlite. If you are interested in this feature, a PR is welcomed. Also you may want to do the same thing on duckdb example.
I tried to run the Sqlite in Example and connect using the database gui in IDEA, but it prompted
ClientInfo property not supported
.How should I make it support this?
ref: https://github.com/sunng87/pgwire/issues/99