Patch: Force Primitives - Mailing list pgsql-jdbc

From Nicholas White
Subject Patch: Force Primitives
Date
Msg-id CA+=vxNbFOFq_24NASd6abQhY8AAwWfOYLQB7mAGMXNkOSzYJQQ@mail.gmail.com
Whole thread Raw
Responses Re: Patch: Force Primitives
List pgsql-jdbc
Hi,

I'd like the JDBC driver's Array implementations to return primitive arrays when I call getArray(). I can force this behaviour by passing &compatible=8.2 in my JDBCUrl, but then I can't transfer the arrays from the database via the binary protocol, as that requires a minimum compatible version of 8.3. I've attached a patch that makes the driver recognise a forcePrimitives boolean flag in the JDBCUrl, and if it sees this it will return primitive arrays, not object arrays.


Is this OK? Thanks -

Nick
Attachment

pgsql-jdbc by date:

Previous
From: Chen Huajun
Date:
Subject: [PATCH] fix a misstake in Driver.getPropertyInfo()
Next
From: Nicholas White
Date:
Subject: Re: Patch: Force Primitives