Re: PostgreSQL specific datatypes very confusing for beginners who use wrappers around JDBC

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: John R Pierce <pierce(at)hogranch(dot)com>
Cc: pgsql-general(at)postgresql(dot)org, Merlin Gttlinger <megoettlinger(at)gmail(dot)com>
Subject: Re: PostgreSQL specific datatypes very confusing for beginners who use wrappers around JDBC
Date: 2014-01-28 21:20:25
Message-ID: 4952.1390944025@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

John R Pierce <pierce(at)hogranch(dot)com> writes:
> On 1/28/2014 12:11 PM, Merlin Gttlinger wrote:
>> I don't know if this is just a beginner problem but at least in my
>> opinion it is rather complicated to use the postgres specific types
>> and features from JDBC and its wrappers.

> these issues are entirely created by the wrappers you're using. like
> most such, they are undoubtedly designed for a lowest common
> denominator, and won't have support for database implementation specific
> data types, just common stuff like strings, numbers.

I think you can fix it by explicitly casting your placeholders, eg
"?::macaddr".

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sergey Konoplev 2014-01-28 21:31:11 PgToolkit v1.0.1 release testing
Previous Message John R Pierce 2014-01-28 21:13:18 Re: PostgreSQL specific datatypes very confusing for beginners who use wrappers around JDBC