Re: "could not determine data type of parameter" with timestamp

From: Rémi Aubel <remi(dot)aubel(at)gmail(dot)com>
To: Vladimir Sitnikov <sitnikov(dot)vladimir(at)gmail(dot)com>
Cc: Brad DeJong <bpd0018(at)gmail(dot)com>, Dave Cramer <pg(at)fastcrypt(dot)com>, "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, List <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: "could not determine data type of parameter" with timestamp
Date: 2018-03-28 10:08:35
Message-ID: CAG2M1fc6KD-c6X_Lwi2FU5ttoDuwuv0Wk1AH0J2zxDYHhyHreg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(dot)vladimir(at)gmail(dot)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-L1242
> however one can file an issue and/or PR to fix that.
>
> Vladimir
>
--

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Vladimir Sitnikov 2018-03-28 10:18:25 Re: "could not determine data type of parameter" with timestamp
Previous Message Vladimir Sitnikov 2018-03-28 09:57:44 Re: "could not determine data type of parameter" with timestamp