SCM

[#1010452] Npgsql 1.99.1.0 - NpgsqlDbType.Line causing exception

View Trackers | Bugs | Download .csv | Monitor

Date:
2008-08-09 03:03
Priority:
3
State:
Open
Submitted by:
Travis Parks (jehugaleahsa)
Assigned to:
Nobody (None)
Npgsql Version:
None
Category:
Group:
Resolution:
None
Summary:
Npgsql 1.99.1.0 - NpgsqlDbType.Line causing exception

Detailed description
When I try to set a parameter of type Npgsql.Line, I am given this message:

System.InvalidCastException: Can't cast Line into any valid DbType..

From my testing, it seems Npgsql tries to set DbType, which it doesn't support.

Thanks,
Travis

Followup

Message
Date: 2008-08-10 20:03
Sender: Travis Parks

I am fine with that. The fact of the matter is I am
developing a library that works with multiple .NET 2.0 data
providers. I have a test that will attempt to create a
NpgsqlCommand given a stored procedure definition on the
database. It is pretty cool. However, when it hit Line, it
immediately failed since it isn't supported.

I am glad to know your team is aware of it. What I am
curious about is: if my code looks for existing stored
procedures, then why did it find one with a database type
of Line in the first place? Curious.

I suppose it is partially implemented.
Date: 2008-08-10 05:38
Sender: Francisco Figueiredo jr.

Hi, Travis.

Actually, Npgsql really doesn't have support for Line data type. Even on server, the docs say it isn't totally implemented. Can you use LSeg instead?

Thanks in advance.

Attached Files:

Changes:

No Changes Have Been Made to This Item

Powered By FusionForge