SCM

[#1010675] error in array handling of null

View Trackers | Bugs | Download .csv | Monitor

Date:
2009-07-16 21:18
Priority:
3
State:
Open
Submitted by:
Rikard Pavelic (rikard)
Assigned to:
Nobody (None)
Npgsql Version:
2.0
Category:
Group:
Resolution:
None
Summary:
error in array handling of null

Detailed description
How about fixing this bug?

A first chance exception of type 'System.NullReferenceException' occurred in Npgsql.dll
Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
at NpgsqlTypes.NpgsqlTypesHelper.DefinedType(Object item)
at NpgsqlTypes.ArrayNativeToBackendTypeConverter.WriteItem(NpgsqlNativeTypeInfo TypeInfo, Object item, StringBuilder sb)
at NpgsqlTypes.ArrayNativeToBackendTypeConverter.WriteArray(NpgsqlNativeTypeInfo TypeInfo, Array ar, StringBuilder sb)
at NpgsqlTypes.ArrayNativeToBackendTypeConverter.WriteItem(NpgsqlNativeTypeInfo TypeInfo, Object item, StringBuilder sb)
at NpgsqlTypes.ArrayNativeToBackendTypeConverter.FromArray(NpgsqlNativeTypeInfo TypeInfo, Object NativeData)
at NpgsqlTypes.NpgsqlNativeTypeInfo.ConvertToBackendPlainQuery(Object NativeData)

There is a patch for this bug 3 months old :(
http://pgfoundry.org/tracker/index.php?func=detail&aid=1010595&group_id=1000140&atid=592

Followup

Message
Date: 2009-11-29 03:31
Sender: Francisco Figueiredo jr.


While checking the code, I noticed that you could use the value of DBNull.Value in order to store null values in your database.

I also already have a fix for 'null' values passed as parameter values.

The problem I'm facing now is the retrieving part. I'm still getting problems with it.

So, for while, use the DBNull.Value for null.

Thanks in advance.
Date: 2009-11-28 19:23
Sender: Josh Cooley

We are looking to catch up on many of these bugs in the next release. I expect this and many others to be taken care of in build 2.0.8.
Date: 2009-11-28 17:23
Sender: Francisco Figueiredo jr.


I'll check that.

And no, there is no special reason shy nobody wants to fix it.

As Josh said, we thought this may already have been fixed.

What other bugs you had to fix to use it in production. Your feedback would provide us information about any other missing bug.

Thanks in advance.
Date: 2009-11-28 12:29
Sender: Rikard Pavelic

I must ask.
Is there some special reason why nobody wants to fix this
annoying bug?
I don't remember when I used Npgsql without compiling it
from source and fixing a couple of bugs in it before using
it in production :(
Date: 2009-07-17 06:32
Sender: Rikard Pavelic

2.0.6
Date: 2009-07-17 03:28
Sender: Josh Cooley

I thought this had been fixed. I'll have to look into this more. What version are you using?

Attached Files:

Changes:

No Changes Have Been Made to This Item

Powered By FusionForge