Bugs
Search the entire project
This project's trackers
This project's forums
This project's tasks
This project's releases
This project's documents
This project's news
Project
People
Skill
Advanced search
Log In
|
New Account
Home
My Page
Projects
Code Snippets
Project Openings
Npgsql .Net Data Provider for Postgresql
Summary
Activity
Forums
Tracker
Lists
Tasks
Docs
Surveys
News
SCM
Files
[#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