pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hélder M. Vieira <hmv@mail.telepac.pt>
To: pgsql-odbc@postgresql.org
Subject: Re: Strange Update query ...
Date: Sun, 2 Apr 2006 12:44:51 +0100
Message-ID: <000a01c6564a$da5e2750$580bfea9@hmv02> (raw)
References: <442D35FD.2050208@geosys.fr>
	<004001c6556c$930fc130$580bfea9@hmv02>
	<442F08E7.2000903@tpf.co.jp>

Hiroshi, I made several tests, and the log always shows an UPDATE statement 
filled with constant values, such as:

'UPDATE mytable SET myfield1=4,myfield2=5,myfield3=6
WHERE (id=6 AND myfield1=1 AND myfield2=2 AND myfield3=3 )'

I tried with several data types, with and without explicit declaration of 
the 'myvaluex' variables, and never saw variable names in the generated 
UPDATE statement.

Thomas Chabaud's log shows:

'UPDATE mytable SET myfield1=myvalue1,myfield2=myvalue2,myfield3=myvalue3
WHERE (id=6 AND myfield1=myvalue1 AND myfield2=myvalue2 AND 
myfield3=myvalue3 )'

I can't figure out how variable names could appear in the UPDATE statement, 
so I think Thomas Chabaud should provide some information about the nature 
of those variables.


Hélder M. Vieira





view thread (6+ messages)  latest in thread

Message-ID: <000a01c6564a$da5e2750$580bfea9@hmv02>
Permalink:  ../000a01c6564a$da5e2750$580bfea9@hmv02/
Also on:    postgresql.org/message-id/000a01c6564a$da5e2750$580bfea9@hmv02

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: hmv@mail.telepac.pt
  Subject: Re: Strange Update query ...
  In-Reply-To: <000a01c6564a$da5e2750$580bfea9@hmv02>
  References: <442D35FD.2050208@geosys.fr> <004001c6556c$930fc130$580bfea9@hmv02> <442F08E7.2000903@tpf.co.jp> <000a01c6564a$da5e2750$580bfea9@hmv02>

* 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