Python Database Objects (PDO) 1.2.0 Released
Wilk
wilkSPAM at OUTflibuste.net
Wed Nov 19 06:01:27 EST 2003
"Jon Franz" <jfranz at neurokode.com> writes:
>> > while results.next():
>> > print "Name: " + results['Name'].value
>> > print "Address: " + results['Address'].value
>> > print "Size of 'Name' column in the db: " +
> str(results['Name'].length)
>>
>> Why don't you use iterators for that?
>> for result in mycon.open("SELECT * FROM Customers"):
>> print ...
>
> Individual rows are not objects in PDO.
Why did'nt you choose to make row and field objects ?
--
Wilk - http://flibuste.net
More information about the Python-list
mailing list