Hi all,

I have this definition of a table.


   session = Table('session', database.metadata,
        Column('id', Unicode(40), primary_key=True, nullable=False),
        Column('data', Text),
        Column('expiration_time', TIMESTAMP(timezone=False)),
        )

In the PostgreSQL DB, it creates a table like this:

     name       |            type             | default | not_null
-----------------+-----------------------------+---------+----------
id              | character varying(40)       |         | t
data            | text                        |         | f
expiration_time | timestamp without time zone |         | f

In the Oracle DB, like this:

name            | data_type    | nullable | data_default | data_length
--------------- + ------------ + -------- + ------------ + -----------
ID              | NVARCHAR2    | N        | NULL         | 80
DATA            | CLOB         | Y        | NULL         | 4000
EXPIRATION_TIME | TIMESTAMP(6) | Y        | NULL         | 11

When I use it with PostgreSQL all is OK but
when I try to use it with Oracle, pickle raises this error:

...data *=* pickle*.*loads*(*pickled_data*)*|
*TypeError: ('loads() argument 1 must be string, not cx_Oracle.LOB', <bound method Root.index of <sicer.BASE.controller.Root object at 0x8231f10>>)*


What can I do to avoid this error?
thank you,

j

--
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to