Skip to content

Indexer property does not convert returned values #9

Description

@GoogleCodeExporter
What steps will reproduce the problem?

Assuming "num_col" is an appropriate numeric column in the database, the 
following throws a FormatException:

Convert.ToInt32(datareader["num_col"])

What is the expected output? What do you see instead?

With the above example, the expected behavior is for Convert.ToInt32 to return 
an integer.  Instead it throws a FormatException.  Generally speaking, the 
indexer property should behave the same as GetValue(int), which converts boxed 
java types to CLR types.


Original issue reported on code.google.com by acton...@gmail.com on 10 Jul 2013 at 7:07

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions