[Mono-bugs] [Bug 569543] New: Npgsql using Guid in parameter

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Jan 9 11:57:36 EST 2010


http://bugzilla.novell.com/show_bug.cgi?id=569543

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


           Summary: Npgsql using Guid in parameter
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: 32bit
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Sys.Data
        AssignedTo: bnc-blr-team-mono at forge.provo.novell.com
        ReportedBy: mikkel at linet.dk
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (X11; U; Linux i686; da-DK; rv:1.9.1.6)
Gecko/20091216 Fedora/3.5.6-1.fc12 Firefox/3.5.6

Calling function: groups.Process (dr.GetGuid(0), seq);


public void Process (object id, int pid)
{
    ((IDbDataParameter)fromCmd.Parameters["PersonID"]).Value = id;
    IDataReader dr = fromCmd.ExecuteReader ();
..

This fails on ExecuteReader using Mono 2.6.1 but works on 2.4.2.3



Reproducible: Always




fromCmd is "SELECT PATADVISKODE.PatAdvisKodeID, PATADVISKODE.AdvisKodeID,
PATADVISKODE.Tekst, PATADVISKODE.AdvisKodeType, PATADVISKODE.Dato FROM
PATADVISKODE WHERE PATADVISKODE.PersonID=@PersonID"

parameter "object id" is 78dd2f1b-8d15-4387-8831-05b38bbc9a1a

Incorrect syntax near '1'.
  at System.Data.SqlClient.SqlConnection.ErrorHandler (System.Object sender,
Mono.Data.Tds.Protocol.TdsInternalErrorMessageEventArgs e) [0x00000] in
<filename unknown>:0 
  at Mono.Data.Tds.Protocol.Tds.OnTdsErrorMessage
(Mono.Data.Tds.Protocol.TdsInternalErrorMessageEventArgs e) [0x00000] in
<filename unknown>:0 
  at Mono.Data.Tds.Protocol.Tds.ProcessMessage (TdsPacketSubType subType)
[0x00000] in <filename unknown>:0 
  at Mono.Data.Tds.Protocol.Tds.ProcessSubPacket () [0x00000] in <filename
unknown>:0 
  at Mono.Data.Tds.Protocol.Tds.NextResult () [0x00000] in <filename unknown>:0 
  at System.Data.SqlClient.SqlDataReader.NextResult () [0x00000] in <filename
unknown>:0 
  at System.Data.SqlClient.SqlDataReader..ctor
(System.Data.SqlClient.SqlCommand command) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check)
System.Data.SqlClient.SqlDataReader:.ctor (System.Data.SqlClient.SqlCommand)
  at System.Data.SqlClient.SqlCommand.ExecuteReader (CommandBehavior behavior)
[0x00000] in <filename unknown>:0

-- 
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