Re: problem with new autocommit config parameter and jdbc

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: snpe <snpe(at)snpe(dot)co(dot)yu>
Cc: Rod Taylor <rbt(at)rbt(dot)ca>, "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: problem with new autocommit config parameter and jdbc
Date: 2002-09-11 13:06:57
Message-ID: 20020911055840.A34783-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-jdbc


On Wed, 11 Sep 2002, snpe wrote:

> On Wednesday 11 September 2002 02:38 pm, Rod Taylor wrote:
> > > > > Why rollback.This is error (typing error).Nothing happen.
> > > > > I think that we need clear set : what is start transaction ?
> > > > > I think that transaction start with change data in database
> > > > > (what don't change data this start not transaction.
> > > >
> > > > Another interesting case for a select is, what about
> > > > select func(x) from table;
> > > > Does func() have any side effects that might change data?
> > > > At what point do we decide that the statement needs a
> > > > transaction?
> > >
> > > Function in select list mustn't change any data.
> > > What if function change data in from clause ?
> >
> > Why can't the function change data? I've done this one a number of
> > times through views to log the user pulling out information from the
> > system, and what it was at the time (time sensitive data).
> Scenario :
> Func change data in table in form clause
> I fetch 3 (after row 1 and 2) and then change row 1
> What result expect ?

Just because the behavior is sometimes undefined by the spec doesn't mean
the construct should be disallowed. Grouped character string columns also
could have implementation-dependent behavior (which never needs to be
specified), but we don't disallow that either.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message snpe 2002-09-11 13:13:20 Re: problem with new autocommit config parameter and jdbc
Previous Message snpe 2002-09-11 13:02:23 Re: problem with new autocommit config parameter and jdbc

Browse pgsql-jdbc by date

  From Date Subject
Next Message snpe 2002-09-11 13:13:20 Re: problem with new autocommit config parameter and jdbc
Previous Message snpe 2002-09-11 13:02:23 Re: problem with new autocommit config parameter and jdbc