pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliveiros Cristina <oliveiros.cristina@gmail.com>
To: pgsql-interfaces@postgresql.org
Subject: Question on NpgsqlParameter object
Date: Mon, 28 May 2007 18:36:52 +0100
Message-ID: <f54607780705281036j9ec0289vd7550e71089f7793@mail.gmail.com> (raw)

Hi, List.

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

Cheers,
Oliveiros

view thread (3+ messages)  latest in thread

Message-ID: <f54607780705281036j9ec0289vd7550e71089f7793@mail.gmail.com>
Permalink:  ../f54607780705281036j9ec0289vd7550e71089f7793@mail.gmail.com/
Also on:    postgresql.org/message-id/f54607780705281036j9ec0289vd7550e71089f7793@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: oliveiros.cristina@gmail.com
  Subject: Re: Question on NpgsqlParameter object
  In-Reply-To: <f54607780705281036j9ec0289vd7550e71089f7793@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox