SCM

[#1000615] Missing null check in DeriveParameters

View Trackers | Bugs | Download .csv | Monitor

Date:
2006-04-19 10:09
Priority:
3
State:
Open
Submitted by:
Nobody
Assigned to:
Nobody (None)
Npgsql Version:
1.0RC1
Category:
Group:
v1.0 (example)
Resolution:
None
Summary:
Missing null check in DeriveParameters

Detailed description
Possibly related to patch #1000447, gborg 1392. If ExecuteScalar returns null it should throw an exception that provides some idea of what is going on.

Currently throws standard null reference: "Object reference not set to an instance of an object."

String types = (String)c.ExecuteScalar();
if (types == null)
{
throw new Exception(c.Parameters[0].Value + " does not exist in pg_proc");
}



Server: Linux, Postgres 8.1.3
Client: Windows XP, Npgsql 1.0RC1

Followup

Message
Date: 2008-08-11 01:24
Sender: Francisco Figueiredo jr.

Hi,

Can you check on latest Npgsql2 release if this still occurs?

Thanks in advance.

Attached Files:

Changes:

No Changes Have Been Made to This Item

Powered By FusionForge