SCM

[#1010768] Casts from NpgsqlDataAdapter to Common.DbDataAdapter under mono not works

View Trackers | Bugs | Download .csv | Monitor

Date:
2010-02-25 10:07
Priority:
3
State:
Open
Submitted by:
Christian Holzner (christianh)
Assigned to:
Nobody (None)
Npgsql Version:
None
Category:
Group:
Resolution:
None
Summary:
Casts from NpgsqlDataAdapter to Common.DbDataAdapter under mono not works

Detailed description
Hello,

npgsql 2.0.8
mono 2.6.1 oder 2.4.2

when I cast a NpgsqlDataAdapter to Common.DbDataAdapter, then the property SelectCommand returns nothing. Even if the original SelectCommand is set.

This occurs only under mono, when I execute it with Microsoft .Net then all works fine. I don't know, if this is a error in npgsql or in mono.

Hope that someone can help me.

Module Module1

Sub Main()
Dim da As Npgsql.NpgsqlDataAdapter = New Npgsql.NpgsqlDataAdapter(New Npgsql.NpgsqlCommand())
Console.WriteLine("da.SelectCommand is nothing: " & (da.SelectCommand Is Nothing).ToString)
Console.WriteLine("DirectCast(da, Common.DbDataAdapter).SelectCommand Is Nothing: " & (DirectCast(da, Common.DbDataAdapter).SelectCommand Is Nothing).ToString)

Console.ReadLine()
End Sub

End Module

Sincerely


Christian Holzner

Followup

Message
Date: 2010-05-31 21:08
Sender: Josh Cooley

This is a regression in Mono that has crept in and out of their DbDataAdapter implementation. We can work around it and have talked about doing so before. We'll try out some changes to see if we can get this fixed in the next release.

Attached Files:

Changes:

No Changes Have Been Made to This Item

Powered By FusionForge