hugsql

valerauko 2018-06-24T11:42:19.000034Z

hi people

valerauko 2018-06-24T11:42:32.000043Z

i'm having a problem using hugsql and i wondered if anyone here could help

valerauko 2018-06-24T11:42:57.000049Z

i have a table like create table foo(bar varchar[]) with an array-of-varchar column

valerauko 2018-06-24T11:43:22.000003Z

i'm trying to select from this like select * from foo where :param = any(bar)

valerauko 2018-06-24T11:43:52.000020Z

but this throws org.postgresql.util.PSQLException: No hstore extension installed.

valerauko 2018-06-24T11:44:27.000014Z

however, from psql i can query like that without problem select * from foo where "baz" = any(bar)

valerauko 2018-06-24T11:44:43.000026Z

any idea how could i get this working?

valerauko 2018-06-24T11:46:12.000074Z

or in case arrays of varchar is a Very Bad Thing to use, could you suggest an alternative? this is my first time using pgsql

valerauko 2018-06-24T13:39:02.000090Z

apparently the java abstractions for pgsql data structures need hstore installed

valerauko 2018-06-24T13:39:08.000083Z

so i did that and now it works!