Re: "could not determine data type of parameter" with timestamp
От | Rémi Aubel |
---|---|
Тема | Re: "could not determine data type of parameter" with timestamp |
Дата | |
Msg-id | CAG2M1fc6KD-c6X_Lwi2FU5ttoDuwuv0Wk1AH0J2zxDYHhyHreg@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: "could not determine data type of parameter" with timestamp (Vladimir Sitnikov <sitnikov.vladimir@gmail.com>) |
Ответы |
Re: "could not determine data type of parameter" with timestamp
|
Список | pgsql-jdbc |
Hi Vladimir,
Thank you for your reply.
Indeed, I already tried with all these combinations:
- PreparedStatement.setNull(_, 1111, "uuid")
- PreparedStatement.setNull(_, 1111, "_uuid")
- PreparedStatement.setNull(_, 2003, "uuid")
- PreparedStatement.setNull(_, 2003, "_uuid")
And none of them work. The driver is still unable to "determine data type of parameter $1" :-(
Which is expected regarding the code.
Do you want me to file an issue?
Rémi
Le mer. 28 mars 2018 à 11:57, Vladimir Sitnikov <sitnikov.vladimir@gmail.com> a écrit :
I believe you should use java.sql.PreparedStatement#setNull(int, int, java.lang.String)As far as I understand, current implementation ignores typename argument: https://github.com/pgjdbc/pgjdbc/blob/REL42.2.2/pgjdbc/src/main/java/org/postgresql/jdbc/PgPreparedStatement.java#L1240-L1242however one can file an issue and/or PR to fix that.Vladimir
В списке pgsql-jdbc по дате отправления: