pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pat Marchant <pat@btree.net>
To: pgsql-odbc@postgresql.org
Subject: Problem w/trigger
Date: Mon, 16 Sep 2002 15:01:14 -0700
Message-ID: <20020916220114.GA15063@btree.net> (raw)

I have several tables that use a trigger to automatically 
update a timestamp field when a record is modified. The trigger 
works fine using psql. When I connect using ODBC, a
modified record is always updated with the time that I
connected to the server - not the current time.

For example, if I connect to the database at
'2002-09-16 13:45:16-07' every record I change will have this 
timestamp. I know the trigger is executing because if I modify 
the record from the server console the record will have the
current time in the timestamp field - then if I change it
again from ODBC it will revert back to the old timestamp.

What's going on?




view thread (3+ messages)  latest in thread

Message-ID: <20020916220114.GA15063@btree.net>
Permalink:  ../20020916220114.GA15063@btree.net/
Also on:    postgresql.org/message-id/20020916220114.GA15063@btree.net

 · 

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: pat@btree.net
  Subject: Re: Problem w/trigger
  In-Reply-To: <20020916220114.GA15063@btree.net>
  References: <20020916220114.GA15063@btree.net>

* 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