Error using prepared statement when connecting to druid

2019-02-25 Thread Puneet Jaiswal
Hi, I am using avatica 1.13.0 to connect to druid 1.12.0. I get this error when using Prepared Statement to run a query. It works fine when I use Statement instead of Prepared Statements. Please take a look and suggest how to fix this? Test code String sql = "SELECT __time, host FROM canarytest W

Re: Error using prepared statement when connecting to druid

2019-03-05 Thread Stamatis Zampetakis
Hi Puneet, It looks like a bug that is probably due to the use of parameters in the query. I suspect that if you use the following statement PreparedStatement st = connection.prepareStatement("SELECT __time, host FROM canarytest WHERE (host = 'i-01e588977b1b23b88')"); it may work even if it is a