Hi Daveit returns object with field referencing to some unknown oid (screen attached)On Mon, Dec 6, 2021 at 1:47 PM Dave Cramer <davecramer@postgres.rocks> wrote:Hi Sergey,What does getResultSetMetadata return?Dave Cramerwww.postgres.rocksOn Mon, 29 Nov 2021 at 07:19, Sergey Nuyanzin <snuyanzin@gmail.com> wrote:Hi everyoneI'm trying to read data from Postgres with pgjdbc.The current question is: how can I retrieve data about nested row types?I tried to find an answer via docs but failedE.g. there is a querySELECT ROW(1, 'one', ROW(1, 'one', null, ROW(1)));I noticed some projects where people take its string representation likejava.sql.ResultSet#getString(int)parse it and reconstruct the object... however this way probably could lead to type info losingI wonder if there is a more subtle way here?-- Best regards,Sergey-- Best regards,Sergey
Hi Sergey,What does getResultSetMetadata return?Dave Cramerwww.postgres.rocksOn Mon, 29 Nov 2021 at 07:19, Sergey Nuyanzin <snuyanzin@gmail.com> wrote:Hi everyoneI'm trying to read data from Postgres with pgjdbc.The current question is: how can I retrieve data about nested row types?I tried to find an answer via docs but failedE.g. there is a querySELECT ROW(1, 'one', ROW(1, 'one', null, ROW(1)));I noticed some projects where people take its string representation likejava.sql.ResultSet#getString(int)parse it and reconstruct the object... however this way probably could lead to type info losingI wonder if there is a more subtle way here?-- Best regards,Sergey
Hi everyoneI'm trying to read data from Postgres with pgjdbc.The current question is: how can I retrieve data about nested row types?I tried to find an answer via docs but failedE.g. there is a querySELECT ROW(1, 'one', ROW(1, 'one', null, ROW(1)));I noticed some projects where people take its string representation likejava.sql.ResultSet#getString(int)parse it and reconstruct the object... however this way probably could lead to type info losingI wonder if there is a more subtle way here?-- Best regards,Sergey
pgsql-jdbc by date:
Соглашаюсь с условиями обработки персональных данных