Java type in JDBC to Postgres ltree

后端 未结 2 546
抹茶落季
抹茶落季 2021-01-03 09:43

Does anyone know what Java type maps to a Postgres ltree type?

I create a table like so:

CREATE TABLE foo (text name, path ltree);

2条回答
  •  一整个雨季
    2021-01-03 10:04

    Why not create stored procedure and call it from CallableStatement with String param to insert row with ltree via it, if preparedStatemnt.setString() isn't working?

    Other solution may be ps.setObject(2, foos.get(i).getPath(), Types.OTHER);, but I can't check it now.

提交回复
热议问题