[Mono-bugs] [Bug 556531] New: Error fetching a LONG RAW column into DataSet with System.Data.OracleClient

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Nov 18 08:24:46 EST 2009


http://bugzilla.novell.com/show_bug.cgi?id=556531#c0

           Summary: Error fetching a LONG RAW column into DataSet with
                    System.Data.OracleClient
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: i586
        OS/Version: SuSE Linux 10.0
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Data
        AssignedTo: bnc-blr-team-mono at forge.provo.novell.com
        ReportedBy: dr_doom1983 at yahoo.de
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.5)
Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)

Fetching a LONG RAW column into a DataSet returns the following error:
System.Data.OracleClient.OracleException: ORA-01406: fetched column value was
truncated

  at System.Data.OracleClient.Oci.OciStatementHandle.Fetch () [0x00000] 
  at System.Data.OracleClient.OracleDataReader.Read () [0x00000] 
  at System.Data.Common.DataAdapter.FillTable (System.Data.DataTable dataTable,
IDataReader dataReader, Int32 startRecord, Int32 maxRecords, System.Int32&
counter) [0x00000] 
  at System.Data.Common.DataAdapter.FillInternal (System.Data.DataSet dataSet,
System.String srcTable, IDataReader dataReader, Int32 startRecord, Int32
maxRecords) [0x00000] 
  at System.Data.Common.DataAdapter.Fill (System.Data.DataSet dataSet,
System.String srcTable, IDataReader dataReader, Int32 startRecord, Int32
maxRecords) [0x00000] 
  at System.Data.Common.DbDataAdapter.Fill (System.Data.DataSet dataSet, Int32
startRecord, Int32 maxRecords, System.String srcTable, IDbCommand command,
CommandBehavior behavior) [0x00000] 
  at System.Data.Common.DbDataAdapter.Fill (System.Data.DataSet dataSet)
[0x00000] 
  at Hst.Kanio.KanioDataAccessLayer.DatabaseExecution.FillDataSet
(System.Data.Common.DbCommand cmd, DatabaseType dbType) [0x00000] 

The code for this issue is very simple:
DataSet ds = new DataSet();
OracleDataAdapter da = new OracleDataAdapter(cmd);
da.Fill(ds);
(I left out some stuff like creating a connection, a command etc.)

Comparing the Mono behaviour to .NET it seems kind of weird. .NET replaces the
data in the LONG RAW column by "System.Byte[]" (I guess by ToString() method)
in a GridView.


Reproducible: Always

Steps to Reproduce:
1.Fill a DataSet with data containing a filled LONG RAW-type column 
Actual Results:  
Described error appears.

Expected Results:  
No exception but convertion like in .NET


-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list