[Mono-list] Re: Npgsql doesn't work anymore

Francisco Figueiredo Jr. fxjrlists@yahoo.com.br
Sat, 20 Mar 2004 16:30:39 -0300


Jaroslaw Kowalski wrote:
> I've made some tests. My new diff is attached (I've added two WriteLine's,
> one of them never was never executed).
> 

Hi Jaroslaw...

The AAA output should have be executed.
This is the output I get with the latest cvs code...

AAA ServerVersion: PostgreSQL 7.3.4 on i686-pc-linux-gnu, compiled by 
GCC gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5) True
ZZZ ServerVersion: PostgreSQL 7.3.4 on i686-pc-linux-gnu, compiled by 
GCC gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5) True



If you aren't seeing the AAA output, it's because the connector is 
already initialized, but it shouldn't!!

Could you add the following lines in your test app?
NpgsqlEventLog.Level = LogLevel.Debug;
NpgsqlEventLog.LogName = "NpgsqlTests.LogFile";

This will create a file NpgsqlTests.LogFile with logging which could 
help track the problem.


Thanks in advance.


> The output is:
> 
> ----
> ZZZ ServerVersion:  False
> _serverVersion is null
> -----
> 
> Hope it helps.
> 
> BTW. I've tried to add "MaxPoolSize=0" to the CS but it just caused the
> connection to hang.
> 

Yeap, it has to be at least 1 :)
I will add a check for that.


-- 
Regards,

Francisco Figueiredo Jr.
Membro Fundador do Projeto MonoBrasil - MonoBrasil Project Founder Member
http://monobrasil.softwarelivre.org



-------------
"Science without religion is lame;
religion without science is blind."

                   ~ Albert Einstein