[pgjdbc/pgjdbc] 582785: tests: UUID vs setString test

From: Vladimir Sitnikov <sitnikov(dot)vladimir(at)gmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: [pgjdbc/pgjdbc] 582785: tests: UUID vs setString test
Date: 2018-03-09 19:56:51
Message-ID: 5aa2e7033c12c_3d122ae3a1009c044234a@hookshot-fe-6e9b612.cp1-iad.github.net.mail
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: 5827858ba5b72b519feb86fc65301a7bffa10c4d
https://github.com/pgjdbc/pgjdbc/commit/5827858ba5b72b519feb86fc65301a7bffa10c4d
Author: Vladimir Sitnikov <sitnikov(dot)vladimir(at)gmail(dot)com>
Date: 2018-03-09 (Fri, 09 Mar 2018)

Changed paths:
M pgjdbc/src/test/java/org/postgresql/test/jdbc2/BaseTest4.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc4/UUIDTest.java

Log Message:
-----------
tests: UUID vs setString test

By default, setString sends 'varchar' datatype, and PostgreSQL might result in
<<ERROR: column "id" is of type uuid but expression is of type character varying>>

There's stringType option that enables sending strings as UNSPECIFIED type to overcome that error.

fixes #1133

Browse pgsql-jdbc by date

  From Date Subject
Next Message Vladimir Sitnikov 2018-03-10 09:36:56 [pgjdbc/pgjdbc] 750486: fix: support generated keys for WITH queries
Previous Message Dave Cramer 2018-03-09 17:50:45 Re: Logical WAL streaming & START_REPLICATION