[Mono-devel-list] Npgsql

Daniel Morgan danielmorgan at verizon.net
Sun Dec 26 08:30:14 EST 2004

I don't know if this has been reported or not.  Or if it has been fixed or

However, I am using the Npgsql provider with Mono 1.0.5 on Windows XP Pro
with SP2.
I am using an alpha version of PostgreSQL 8.0 Win32.

I am getting the wrong column size of character types of -1.

Debug:  Name:boolean_value  Length: 1
Debug:  Name:int2_value  Length: 2
Debug:  Name:int4_value  Length: 4
Debug:  Name:bigint_value  Length: 8
Debug:  Name:float_value  Length: 4
Debug:  Name:double_value  Length: 8
Debug:  Name:numeric_value  Length: -1
Debug:  Name:char_value  Length: -1
Debug:  Name:varchar_value  Length: -1
Debug:  Name:text_value  Length: -1
Debug:  Name:point_value  Length: 16
Debug:  Name:time_value  Length: 8
Debug:  Name:date_value  Length: 4
Debug:  Name:timestamp_value  Length: 8

Also, the postmaster log shows "unexpected EOF on client connection".  Here
is a test program.

using System;
using System.Data;
using Npgsql;

namespace TestNpgsqlStuff
	public class TestNpgsql 
		public void DoTest () 
			NpgsqlConnection con = new
			con.Open ();
			con.Close ();
			con.Dispose ();
			con = null;

		public static void Main (string[] args) {
			TestNpgsql test = new TestNpgsql ();
			test.DoTest ();

More information about the Mono-devel-list mailing list