Re: [dabo-users] Odbc and Bizobj's

Author: Roger Gammans

Posted: 2009-07-13 at 12:08:47

On Mon, Jul 13, 2009 at 09:20:56AM -0500, Ed Leafe wrote:

> We would need to be able to reference the type of the returned value;

> I assume that this Row class is defined in the pyodbc module. This

> would mean that *everyone* would have to have that file installed.

Ah . No we don't want that .

> Is there anyway to cast these Row values into tuples or lists?

D'oh.

Yes a simple cast works fine. It's a bit slow on large datasets as we

have to loop round the results twice. But I hope not to be selecting

the whole table most of the time.

Excellent I'll sort a patch out soon.

TTFN

--

Roger. Home| http://www.sandman.uklinux.net/

Master of Peng Shui. (Ancient oriental art of Penguin Arranging)

Work|Independent Sys Consultant | http://www.computer-surgery.co.uk/

New key Fpr: 72AF 0ACC 9A53 E59F B1B6 DC14 1983 A13E 5C3D 3CEB

©2009 Roger Gammans