[IronPython] Bug in 1.1.2 with Indexer on SqlDataReader

Davy Mitchell daftspaniel at gmail.com
Mon Sep 29 14:17:10 CEST 2008


Hi Folks,

Bug in 1.1.2 with Indexer on SqlDataReader - see below.
Don't really need a fix for this and appears fixed in 2.0, but is there a
better workaround than accessing fields by index i.e. Reader[0] etc. ?

Cheers,
Davy Mitchell

IronPython 1.1.2 (1.1.2) on .NET 2.0.50727.1433
Copyright (c) Microsoft Corporation. All rights reserved.
>>> import clr
>>> clr.AddReference('System.Data')
>>> from System.Data.SqlClient import *
>>> SqlDataReader.Item
Traceback (most recent call last):
  File , line 0, in <stdin>##89
AttributeError: type object 'SqlDataReader' has no attribute 'Item'

IronPython 2.0 Beta (2.0.0.5000) on .NET 2.0.50727.1433
Type "help", "copyright", "credits" or "license" for more information.
>>> import clr
>>> clr.AddReference('System.Data')
>>> from System.Data.SqlClient import *
>>> SqlDataReader.Item
<indexer# object at 0x000000000000002B>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20080929/b1bab568/attachment.html>


More information about the Ironpython-users mailing list