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>
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to