On Thu, Aug 22, 2013 at 7:53 PM, Nick Williams <
[email protected]> wrote:

>
> On Aug 22, 2013, at 6:49 PM, Gary Gregory wrote:
>
> On Thu, Aug 22, 2013 at 6:45 PM, Scott Deboy <[email protected]>wrote:
>
>> See the Column casting in JDBCAppender Column casting in JDBCAppender
>> thread on the user list for context.
>>
>> I think it's time to discuss this issue on the dev list.  There's no
>> need for us to say 'no' 20 different ways on the user list when the
>> reality is that the PGSQL enum issue can be easily handled if we
>> choose to do it.
>>
>> Remember, any of us can hack the appender to add this feature..I
>> personally don't find your list of reasons to not add dialect support
>> compelling.
>>
>
> I tend to agree with Nick here. The level of complexity involved is not
> trivial to address one bug in one JDBC driver. Adding a whole layer of
> indirection in the form of an SPI and impl classes should not be taken
> lightly.
>
>
> Exactly. It would not be nearly as simple as the Dialects that Scott
> references from the legacy code. Each dialect would have to construct the
> prepared statement differently and bond the parameters appropriately.
>
> A simpler customization might be to let the configuration hard-code the
> SQL INSERT statement. Would that do it?
>
>
> Unfortunately, no. The problem isn't so much in the statement but in the
> binding of parameters. PGSQL enum parameters must be bound with
> setObject(i, value, Types.OTHER) instead of setString().
>

Clearly a bug in the driver then.

Gary


>
> Gary
>
>
>>
>> Scott
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
>
> --
> E-Mail: [email protected] | [email protected]
> Java Persistence with Hibernate, Second 
> Edition<http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>
>
>


-- 
E-Mail: [email protected] | [email protected]
Java Persistence with Hibernate, Second Edition<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Reply via email to