Re: Bit and Boolean

From: Jim Menard (jim..o.com)
Date: Mon Dec 08 2003 - 22:47:12 EST

  • Next message: Tore Halset: "prefetching"

    Adnrus,

    Good news: I'm receiving cayenne-user! The spam block must have been
    lifted.

    > My original assessment of the problem was not entirely correct. What
    > happened here is the mismatch between java.sql.Types.BIT and Postgres
    > "bit" types. Postgres "bit" is in fact a "bit string", so it is not
    > the same things as java.sql.Types.BIT. I changed default mapping used
    > by Cayenne to generate PostgreSQL tables. Now if an attribute is a
    > BIT, it will result in a Postgres "boolean" column, that works with
    > Java boolean values.
    >
    > Cayenne version that contains this fix can be downloaded from here:
    >
    > http://objectstyle.org/downloads/cayenne/patched/cayenne-src-1.0.x-
    > dev.tar.gz

    Thank you for your quick answers and the fix.

    > And of course, DB schema will have to be regenerated.

    No problem.

    Jim

    -- 
    Jim Menard, jim..o.com, http://www.io.com/~jimm/
    "The theory of computation states that all automatons can be emulated
    by a Turing machine. I have a less abstract but more practical motto: If
    you can do it on Intel, you can do it damn near anywhere!"
         -- Eugene O'Neil
    



    This archive was generated by hypermail 2.0.0 : Mon Dec 08 2003 - 22:47:17 EST