You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Gilles Bayon (JIRA)" <ib...@incubator.apache.org> on 2004/12/26 19:41:05 UTC

[jira] Closed: (IBATISNET-14) System.Data.OracleClient DataColumn name and ReaderAutoMapper

     [ http://nagoya.apache.org/jira/browse/IBATISNET-14?page=history ]
     
Gilles Bayon closed IBATISNET-14:
---------------------------------

     Assign To: Gilles Bayon
    Resolution: Fixed

Apply patch

> System.Data.OracleClient DataColumn name and ReaderAutoMapper
> -------------------------------------------------------------
>
>          Key: IBATISNET-14
>          URL: http://nagoya.apache.org/jira/browse/IBATISNET-14
>      Project: iBatis for .NET
>         Type: Improvement
>  Environment: Latest iBATIS.NET source code from SVN using System.Data.OracleClient provider for Oracle 9.0.2.
>     Reporter: Roberto Rabe
>     Assignee: Gilles Bayon
>     Priority: Minor
>  Attachments: IBatisNetDataMapper_MappedStatements_MappedStatement.patch
>
> I'm trying to go through the NUnit tests with the System.Data Oracle provider and have run into a case-sensitive issue with column names and property names since the names are being used as the keys in Hashtables and in retrieving reflectioninfo.
> The DataColumn names being returned by the System.Data.OracleClient are in all caps/upper case.  This is causing an issue with the column name to property name comparison in the ReaderAutoMapper class in MappedStatement on this line:
> PropertyInfo matchedPropertyInfo = propertyMap[columnName] as PropertyInfo;
> Since the columnName being returned by the provider is in all caps/upper case, no matching property is found.
> I'm uploading an SVN diff/patch, but I don't know if there will be any internationalization issues with column names for other databases/providers that I am not familiar with.  Additionally, since the propertyName gets immediately set to the columnName if the resultObject is a Hashtable, there is still an issue there too.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira