[Mono-bugs] [Bug 328398] New: SqlDbType.Image is not supported

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Sep 25 21:54:28 EDT 2007


https://bugzilla.novell.com/show_bug.cgi?id=328398

           Summary: SqlDbType.Image is not supported
           Product: Mono: Class Libraries
           Version: 1.2
          Platform: i586
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Sys.Data.SqlClient
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: gcomeau at hotmail.com
         QAContact: mono-bugs at ximian.com
          Found By: Community of Practice


This feature worked under mono 1.2.3 and now breaks in 1.2.5
See the source, the makefile and the output. It also passes using the MS
compiler. The mono runtime throws a 
Unhandled Exception: System.NotImplementedException: Type Not Supported : Image





********************************
The test case:
********************************

using System;
using System.Data;
using System.Data.SqlClient;


public class ImageArgTests {

  public static void Main(String[] args){

    SqlParameter param = new SqlParameter("pname", SqlDbType.Image);
    param.Direction = ParameterDirection.Input;
    param.Value = new byte[10];

  }

}



********************************
The makefile
********************************
all:
        @uname -a
        @echo " #######################################################"
        @echo " *               CSC Compiler, MS Runtime              *"
        @echo " #######################################################"
        csc /out:a.exe ImageArgTests.cs
        ./a.exe
        @echo " #######################################################"
        @echo " *               Mono Compiler, Mono Runtime           *"
        @echo " #######################################################"
        gmcs --version
        gmcs /out:b.exe -r:System.Data.dll ImageArgTests.cs
        -mono ./b.exe
        @echo " #######################################################"
        @echo " *               CSC Compiler, Mono Runtime            *"
        @echo " #######################################################"
        -mono ./a.exe
        @echo " #######################################################"
        @echo " *               Mono Compiler, MS Runtime             *"
        @echo " #######################################################"
        ./b.exe




********************************
The output
********************************
$ cat out.txt
CYGWIN_NT-5.1 paprika 1.5.11(0.116/4/2) 2004-09-04 23:17 i686 unknown unknown
Cygwin
 #######################################################
 *               CSC Compiler, MS Runtime              *
 #######################################################
csc /out:a.exe ImageArgTests.cs
Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42
for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.

/a.exe
 #######################################################
 *               Mono Compiler, Mono Runtime           *
 #######################################################
gmcs --version
Mono C# compiler version 1.2.5.0
gmcs /out:b.exe -r:System.Data.dll ImageArgTests.cs
mono ./b.exe

Unhandled Exception: System.NotImplementedException: Type Not Supported : Image
  at System.Data.SqlClient.SqlParameter.ConvertToFrameworkType (System.Object
value) [0x00000]
  at System.Data.SqlClient.SqlParameter.SqlTypeToFrameworkType (System.Object
value) [0x00000]
  at System.Data.SqlClient.SqlParameter.set_Value (System.Object value)
[0x00000]
  at ImageArgTests.Main (System.String[] args) [0x00000]
make: [all] Error 1 (ignored)
 #######################################################
 *               CSC Compiler, Mono Runtime            *
 #######################################################
mono ./a.exe

Unhandled Exception: System.NotImplementedException: Type Not Supported : Image
  at System.Data.SqlClient.SqlParameter.ConvertToFrameworkType (System.Object
value) [0x00000]
  at System.Data.SqlClient.SqlParameter.SqlTypeToFrameworkType (System.Object
value) [0x00000]
  at System.Data.SqlClient.SqlParameter.set_Value (System.Object value)
[0x00000]
  at ImageArgTests.Main (System.String[] args) [0x00000]
make: [all] Error 1 (ignored)
 #######################################################
 *               Mono Compiler, MS Runtime             *
 #######################################################
/b.exe


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


More information about the mono-bugs mailing list