| From: | Radosław Smogura <rsmogura(at)softperience(dot)eu> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Postgresql prepared transactions |
| Date: | 2011-02-19 00:02:36 |
| Message-ID: | 201102190102.36686.rsmogura@softperience.eu |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> Saturday 19 February 2011 00:48:00
> =?utf-8?q?Rados=C5=82aw_Smogura?= <rsmogura(at)softperience(dot)eu> writes:
> > I do following commands
> >
> > test=# BEGIN;
> > BEGIN
> > test=# insert into testxa1 values(1);
> > INSERT 0 1
> > test=# insert ddddduuuuuppppp;
> > ERROR: syntax error at or near "ddddduuuuuppppp"
> > LINE 1: insert ddddduuuuuppppp;
> >
> > ^
> >
> > test=# PREPARE TRANSACTION 'a';
> > ROLLBACK
> >
> > Why on prepare transaction I got rollback.
>
> Because the transaction had already failed due to the error. This is
> the same as if you'd done a plain COMMIT at that point.
>
> regards, tom lane
Sorry, my wrong. I thought I can commit or rollback. In any way next bug JDBC.
Regards
| From | Date | Subject | |
|---|---|---|---|
| Next Message | andrew1 | 2011-02-19 02:03:50 | mysql 2 pg script... |
| Previous Message | Mike Christensen | 2011-02-18 23:53:56 | Re: Explicit NULL for no INTEGER data? -- Update |