[GENERAL] different transaction handling between postgresql and oracle/mysql

2003-07-14 Thread Jörg Schulz
Suppose the following: create table test (a int primary key); insert into test values (1); select * from test; a = 1 In Postgresql if you do the following in a transaction (either with autocommit=off or with an explizit begin): insert into test values (2); -> ok insert into test values (1); ->

Re: [GENERAL] different transaction handling between postgresql and oracle/mysql

2003-07-14 Thread Martijn van Oosterhout
Um, the behaviour you are seeing is what would happen in PostgreSQL if everything were all in one transaction. What you show for Oracle is what would happen if each statement were in it's own transaction. On the postgresql server here, without transactions: create temp table test (a int primary k

Re: [GENERAL] different transaction handling between postgresql and oracle/mysql

2003-07-14 Thread Jörg Schulz
> ... I have this feeling the reason Oracle gives this result may > be again because transactions have been switched off! This snippet comes from the Oracle console: (table name is "a" not "test" / messages are in german) SQL> show autocommit; autocommit OFF SQL> select * from a; A