how to handle DbiRaw instance?

Reiot reiot at uzdream.com
Fri Nov 1 21:41:50 EST 2002


Hi Gurus..

I've stored some C-struct to MS-SQL varbinary column, 

and i'm working on tiny converting tool with python.

but i couldn't handle the DbiRow instance...

my plan was,

while 1:
    rec = cur.fetchone()
    rawobj = rec[N]
    a,b,c = struct.unpack('HHL',CONVERT_RAWOBJ_TO_STR(rawobj))
    handle_abc()

bu..t... how can i convert DbiRaw instance to normal string....??



More information about the Python-list mailing list