Re: [GENERAL] Re: [HACKERS] TRANSACTIONS

2000-02-25 Thread kaiq
On Fri, 25 Feb 2000, Karl DeBisschop wrote: > > > From: <[EMAIL PROTECTED]> > > On Fri, 25 Feb 2000, Karl DeBisschop wrote: > > > > > > > > >>To summarize, I stated that the following does not work with > > > >>postgresql: > > > >> > > > >>> $dbh->{AutoCommit} = 0; > > > >>> $

Re: [GENERAL] Re: [HACKERS] TRANSACTIONS

2000-02-25 Thread Karl DeBisschop
> From: "Keith G. Murphy" <[EMAIL PROTECTED]> > > Karl DeBisschop wrote: > > > > To summarize, I stated that the following does not work with > > postgresql: > > > > > $dbh->{AutoCommit} = 0; > > > $dbh->do("CREATE TABLE tmp (a int unique,b int)"); > > > while (<>){ > > >

Re: [GENERAL] Re: [HACKERS] TRANSACTIONS

2000-02-25 Thread Karl DeBisschop
> From: <[EMAIL PROTECTED]> > On Fri, 25 Feb 2000, Karl DeBisschop wrote: > > > > > >>To summarize, I stated that the following does not work with > > >>postgresql: > > >> > > >>> $dbh->{AutoCommit} = 0; > > >>> $dbh->do("CREATE TABLE tmp (a int unique,b int)"); > > >>>

Re: [GENERAL] Re: [HACKERS] TRANSACTIONS

2000-02-25 Thread Keith G. Murphy
Karl DeBisschop wrote: > > To summarize, I stated that the following does not work with > postgresql: > > > $dbh->{AutoCommit} = 0; > > $dbh->do("CREATE TABLE tmp (a int unique,b int)"); > > while (<>){ > > if (/([0-9]+) ([0-9]+)/) { > > $rtv = $dbh->do("INSERT INTO tmp VALUES ($1,$2

Re: [GENERAL] Re: [HACKERS] TRANSACTIONS

2000-02-25 Thread kaiq
On Fri, 25 Feb 2000, Karl DeBisschop wrote: > > >>To summarize, I stated that the following does not work with > >>postgresql: > >> > >>> $dbh->{AutoCommit} = 0; > >>> $dbh->do("CREATE TABLE tmp (a int unique,b int)"); > >>> $rtv = $dbh->do("INSERT INTO tmp VALUES ($1,$2)"); > >>>

Re: [GENERAL] Re: [HACKERS] TRANSACTIONS

2000-02-25 Thread Karl DeBisschop
>>To summarize, I stated that the following does not work with >>postgresql: >> >>> $dbh->{AutoCommit} = 0; >>> $dbh->do("CREATE TABLE tmp (a int unique,b int)"); >>> $rtv = $dbh->do("INSERT INTO tmp VALUES ($1,$2)"); >>> if ($rtv) {$dbh->do("UPDATE tmp SET b=$2 where a=$1")}; >>>

Re: [GENERAL] Re: [HACKERS] TRANSACTIONS

2000-02-24 Thread Lincoln Yeoh
At 02:16 PM 24-02-2000 -0500, Karl DeBisschop wrote: > >To summarize, I stated that the following does not work with >postgresql: > >> $dbh->{AutoCommit} = 0; >> $dbh->do("CREATE TABLE tmp (a int unique,b int)"); >> $rtv = $dbh->do("INSERT INTO tmp VALUES ($1,$2)"); >> if ($rtv) {$

[GENERAL] Re: [HACKERS] TRANSACTIONS

2000-02-23 Thread Jose Soares
Don Baccus wrote: > At 11:32 AM 2/22/00 -0500, Tom Lane wrote: > > >I see no way that allowing the transaction to commit after an overflow > >can be called consistent with the spec. > > You are absolutely right. The whole point is that either a) everything > commits or b) nothing commits. > > Ha

Re: [GENERAL] Re: [HACKERS] TRANSACTIONS

2000-02-23 Thread Jose Soares
Sorry for my english, Tom, but the point is another, I'm talking about transactions not about error messages. This is only a stupid example how to abort a transaction, PostgreSQL aborts automatically transactions if an error occurs, even an warning or a syntax error. I can believe that all other

[GENERAL] Re: [HACKERS] TRANSACTIONS

2000-02-23 Thread Jose Soares
Dmitry Samersoff wrote: > On 22-Feb-2000 Jose Soares wrote: > > begin transaction; > > create table tmp(a int); > > insert into tmp values (1); > > insert into tmp values (10); > > ERROR: pg_atoi: error reading "10": > > Numerical

[GENERAL] Re: [HACKERS] TRANSACTIONS

2000-02-22 Thread Tom Lane
Jose Soares <[EMAIL PROTECTED]> writes: > --- > Interbase, Oracle,Informix,Solid,Ms-Access,DB2: > --- > connect hygea.gdb; > create table temp(a int); > insert into temp values (1); > insert in

[GENERAL] RE: [HACKERS] TRANSACTIONS

2000-02-22 Thread Dmitry Samersoff
On 22-Feb-2000 Jose Soares wrote: > begin transaction; > create table tmp(a int); > insert into tmp values (1); > insert into tmp values (10); > ERROR: pg_atoi: error reading "10": > Numerical result out of range > commit; > select