Thank you for your fast reply.
I'm gonna check this out.
Actually I wasn't aware of the existence of the Npgsql mailing list, even though I use it exclusively to access the back end !
But, maybe if I am a little more specific you can tell me what I am (potentially) doing wrong.
Can I use parameters to substitute a whole condition?
For ex, is it possible to have a query like this?
My problems started yesterday when I started using parameters in this way.
Before I've just used it in situations like this :
WHERE variacao >= @percentagem
and it always worked without the smallest problem.
I wonder if it is legal to use NpgsqlParameters in the way I do now...
----- Original Message -----
From: Francisco Figueiredo Jr.
To: Oliveiros Cristina ; pgsql-interfaces(at)postgresql(dot)org
Sent: Monday, May 28, 2007 11:32 PM
Subject: Res: [INTERFACES] Question on NpgsqlParameter object
Unfortunately it is not possible with current state to get this text.
You will have to enable either Npgsql Log or postgresql log.
Just add those lines:
// Enable logging. NpgsqlEventLog.Level = LogLevel.Debug; NpgsqlEventLog.LogName = "NpgsqlTests.LogFile";
It will show you all the commands sent to server.
You can also get support from Npgsql mail list and forum. Check out Npgsql project page:
I hope it helps.
Francisco Figueiredo Jr.
Npgsql Lead Developer
MonoBrasil Project Founder Member
"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
- Indira Gandhi
----- Mensagem original ----
De: Oliveiros Cristina <oliveiros(dot)cristina(at)gmail(dot)com>
Enviadas: Segunda-feira, 28 de Maio de 2007 14:36:52
Assunto: [INTERFACES] Question on NpgsqlParameter object
I am not 100% sure if this is the right list, if it isnt please kindly re-direct me to the proper list.
I would like to see NpgsqlCommand.CommandText value after parameter substitution. I have a query that is not behaving correctly and I suspect strongly that it has to do with parameters getting instantiated in unexpected ways.
How can I have access to query SQL text after parameter substitution ?
I try to look at CommandText Property immediately before calling ExecuteReader() method, but I get the text with all parameters unsubstituted.
Any Help/Comments/Advices deeply appreciated
Thanks in advance
Fale com seus amigos de graça com o novo Yahoo! Messenger
In response to
pgsql-interfaces by date
|Next:||From: Francisco Figueiredo Jr.||Date: 2007-05-30 15:23:42|
|Subject: Re: Question on NpgsqlParameter object|
|Previous:||From: Devrim GÜNDÜZ||Date: 2007-05-29 06:55:18|
|Subject: Re: how to uninstall postgresql from fedora 5|