Re: [jira] Updated: (CAY-1298) String no longer works in query when column type is Integer

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Tue Jan 12 2010 - 06:03:52 EST

  • Next message: Andrus Adamchik: "Re: Build failed in Hudson: Cayenne-30 » JDK 1.5 (latest),Ubuntu #22"

    On Jan 12, 2010, at 12:07 PM, Andrey Razumovsky wrote:

    > 2010/1/11 Andrus Adamchik <andru..bjectstyle.org>
    >
    >> - st.setString(pos, (String) val);
    >> + // if this is a CLOB column, set the value as "String"
    >> + // instead. This should work with most drivers
    >> + if (type == Types.CLOB) {
    >> + st.setString(pos, (String) val);
    >> + }
    >> + else {
    >> + super.setJdbcObject(st, val, pos, type, precision);
    >> + }
    >>
    >>
    >
    > Since I'm not aware why this change was introduced, could you please
    > check
    > (or remember) consequences of reverting it?

    I was actually going to commit this myself. All we need to do
    afterwards is just general regression testing across DBs.

    Andrus



    This archive was generated by hypermail 2.0.0 : Tue Jan 12 2010 - 06:04:33 EST