pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
[ psqlodbc-Bugs-1000563 ] Rollback in manual transaction
5+ messages / 1 participants
[nested] [flat]

* [ psqlodbc-Bugs-1000563 ] Rollback in manual transaction
@ 2006-02-22 12:23  noreply@pgfoundry.org
  0 siblings, 0 replies; 5+ messages in thread

From: noreply@pgfoundry.org @ 2006-02-22 12:23 UTC (permalink / raw)
  To: noreply@pgfoundry.org

Bugs item #1000563, was opened at 22/02/2006 12:23
You can respond by visiting: 
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000563&group_id=1000125

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Lorenzo Marcone (marcone)
Assigned to: Nobody (None)
Summary: Rollback in manual transaction

Initial Comment:
Postgres 8.1 either Windows or linux
psqlODBC 08.01.0200
.Net Framework 1.1 in particular Visual Basic

In Notes: psqlODBC 08.01.0106 I read:
...
3) doesn't call rollback in autocommit off or in manual transaction
...

But Executing a statement in a transaction which gives an error causes an implicit rollback of the transaction and the close of the connection.
Sample code:

Dim cnt As New Odbc.OdbcConnection"Driver={PostgreSQL Unicode}; Server=****; Database=test_ado; Uid=postgres; Password=****; BoolsAsChar=0; Parse=0; UniqueIndex=1; TextAsLongVarchar=1; LowerCaseIdentifier=1")
Dim tra As Odbc.OdbcTransaction
Dim sSql As String

Try
    cnt.Open()
    tra = cnt.BeginTransaction()
    'Setting Primary key to Null cause an error
    sSql = "UPDATE test_ado SET cod=Null WHERE cod ='00004'"
    Dim cmd As New Odbc.OdbcCommand(sSql, cnt)
    cmd.CommandText = sSql
    cmd.Transaction = tra
    cmd.ExecuteNonQuery()

Catch ex As Exception
    MsgBox(ex.Message)
    MsgBox(cnt.State.ToString)
End Try


----------------------------------------------------------------------

You can respond by visiting: 
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000563&group_id=1000125



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* [ psqlodbc-Bugs-1000564 ] Rollback in manual transaction
@ 2006-02-22 12:23  noreply@pgfoundry.org
  0 siblings, 0 replies; 5+ messages in thread

From: noreply@pgfoundry.org @ 2006-02-22 12:23 UTC (permalink / raw)
  To: noreply@pgfoundry.org

Bugs item #1000564, was opened at 22/02/2006 12:23
You can respond by visiting: 
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000564&group_id=1000125

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: Rollback in manual transaction

Initial Comment:
Postgres 8.1 either Windows or linux
psqlODBC 08.01.0200
.Net Framework 1.1 in particular Visual Basic

In Notes: psqlODBC 08.01.0106 I read:
...
3) doesn't call rollback in autocommit off or in manual transaction
...

But Executing a statement in a transaction which gives an error causes an implicit rollback of the transaction and the close of the connection.
Sample code:

Dim cnt As New Odbc.OdbcConnection"Driver={PostgreSQL Unicode}; Server=****; Database=test_ado; Uid=postgres; Password=****; BoolsAsChar=0; Parse=0; UniqueIndex=1; TextAsLongVarchar=1; LowerCaseIdentifier=1")
Dim tra As Odbc.OdbcTransaction
Dim sSql As String

Try
    cnt.Open()
    tra = cnt.BeginTransaction()
    'Setting Primary key to Null cause an error
    sSql = "UPDATE test_ado SET cod=Null WHERE cod ='00004'"
    Dim cmd As New Odbc.OdbcCommand(sSql, cnt)
    cmd.CommandText = sSql
    cmd.Transaction = tra
    cmd.ExecuteNonQuery()

Catch ex As Exception
    MsgBox(ex.Message)
    MsgBox(cnt.State.ToString)
End Try


----------------------------------------------------------------------

You can respond by visiting: 
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000564&group_id=1000125



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* [ psqlodbc-Bugs-1000563 ] Rollback in manual transaction
@ 2006-03-01 23:47  noreply@pgfoundry.org
  0 siblings, 0 replies; 5+ messages in thread

From: noreply@pgfoundry.org @ 2006-03-01 23:47 UTC (permalink / raw)
  To: noreply@pgfoundry.org

Bugs item #1000563, was opened at 2006-02-22 12:23
You can respond by visiting: 
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000563&group_id=1000125

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Lorenzo Marcone (marcone)
Assigned to: Nobody (None)
Summary: Rollback in manual transaction

Initial Comment:
Postgres 8.1 either Windows or linux
psqlODBC 08.01.0200
.Net Framework 1.1 in particular Visual Basic

In Notes: psqlODBC 08.01.0106 I read:
...
3) doesn't call rollback in autocommit off or in manual transaction
...

But Executing a statement in a transaction which gives an error causes an implicit rollback of the transaction and the close of the connection.
Sample code:

Dim cnt As New Odbc.OdbcConnection"Driver={PostgreSQL Unicode}; Server=****; Database=test_ado; Uid=postgres; Password=****; BoolsAsChar=0; Parse=0; UniqueIndex=1; TextAsLongVarchar=1; LowerCaseIdentifier=1")
Dim tra As Odbc.OdbcTransaction
Dim sSql As String

Try
    cnt.Open()
    tra = cnt.BeginTransaction()
    'Setting Primary key to Null cause an error
    sSql = "UPDATE test_ado SET cod=Null WHERE cod ='00004'"
    Dim cmd As New Odbc.OdbcCommand(sSql, cnt)
    cmd.CommandText = sSql
    cmd.Transaction = tra
    cmd.ExecuteNonQuery()

Catch ex As Exception
    MsgBox(ex.Message)
    MsgBox(cnt.State.ToString)
End Try


----------------------------------------------------------------------

>Comment By: Hiroshi Inoue (hinoue)
Date: 2006-03-01 23:47

Message:
REL-07_03_ENHANCED version has an option to avoid the impicit rollback. Please try it.

----------------------------------------------------------------------

You can respond by visiting: 
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000563&group_id=1000125



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* [ psqlodbc-Bugs-1000563 ] Rollback in manual transaction
@ 2006-03-18 21:56  noreply@pgfoundry.org
  0 siblings, 0 replies; 5+ messages in thread

From: noreply@pgfoundry.org @ 2006-03-18 21:56 UTC (permalink / raw)
  To: noreply@pgfoundry.org

Bugs item #1000563, was opened at 2006-02-22 12:23
You can respond by visiting: 
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000563&group_id=1000125

Category: None
Group: None
>Status: Closed
Resolution: None
Priority: 3
Submitted By: Lorenzo Marcone (marcone)
>Assigned to: Hiroshi Inoue (hinoue)
Summary: Rollback in manual transaction

Initial Comment:
Postgres 8.1 either Windows or linux
psqlODBC 08.01.0200
.Net Framework 1.1 in particular Visual Basic

In Notes: psqlODBC 08.01.0106 I read:
...
3) doesn't call rollback in autocommit off or in manual transaction
...

But Executing a statement in a transaction which gives an error causes an implicit rollback of the transaction and the close of the connection.
Sample code:

Dim cnt As New Odbc.OdbcConnection"Driver={PostgreSQL Unicode}; Server=****; Database=test_ado; Uid=postgres; Password=****; BoolsAsChar=0; Parse=0; UniqueIndex=1; TextAsLongVarchar=1; LowerCaseIdentifier=1")
Dim tra As Odbc.OdbcTransaction
Dim sSql As String

Try
    cnt.Open()
    tra = cnt.BeginTransaction()
    'Setting Primary key to Null cause an error
    sSql = "UPDATE test_ado SET cod=Null WHERE cod ='00004'"
    Dim cmd As New Odbc.OdbcCommand(sSql, cnt)
    cmd.CommandText = sSql
    cmd.Transaction = tra
    cmd.ExecuteNonQuery()

Catch ex As Exception
    MsgBox(ex.Message)
    MsgBox(cnt.State.ToString)
End Try


----------------------------------------------------------------------

Comment By: Hiroshi Inoue (hinoue)
Date: 2006-03-09 00:53

Message:
Unfortunateky I don't know when the official libpq version will implement the functionalities which      
the REL_07_03_ENHANCED already has.  

----------------------------------------------------------------------

Comment By: Lorenzo Marcone (marcone)
Date: 2006-03-08 09:28

Message:
REL-07_03_ENHANCED works correctly.  I have not properly 
understood whether the functions of this version will be 
present in the official release or if they belong to two 
different projects

----------------------------------------------------------------------

Comment By: Hiroshi Inoue (hinoue)
Date: 2006-03-01 23:47

Message:
REL-07_03_ENHANCED version has an option to avoid the impicit rollback. Please try it.

----------------------------------------------------------------------

You can respond by visiting: 
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000563&group_id=1000125



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* [ psqlodbc-Bugs-1000564 ] Rollback in manual transaction
@ 2006-03-18 22:01  noreply@pgfoundry.org
  0 siblings, 0 replies; 5+ messages in thread

From: noreply@pgfoundry.org @ 2006-03-18 22:01 UTC (permalink / raw)
  To: noreply@pgfoundry.org

Bugs item #1000564, was opened at 2006-02-22 12:23
You can respond by visiting: 
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000564&group_id=1000125

Category: None
Group: None
>Status: Deleted
>Resolution: Rejected
Priority: 3
Submitted By: Nobody (None)
>Assigned to: Hiroshi Inoue (hinoue)
Summary: Rollback in manual transaction

Initial Comment:
Postgres 8.1 either Windows or linux
psqlODBC 08.01.0200
.Net Framework 1.1 in particular Visual Basic

In Notes: psqlODBC 08.01.0106 I read:
...
3) doesn't call rollback in autocommit off or in manual transaction
...

But Executing a statement in a transaction which gives an error causes an implicit rollback of the transaction and the close of the connection.
Sample code:

Dim cnt As New Odbc.OdbcConnection"Driver={PostgreSQL Unicode}; Server=****; Database=test_ado; Uid=postgres; Password=****; BoolsAsChar=0; Parse=0; UniqueIndex=1; TextAsLongVarchar=1; LowerCaseIdentifier=1")
Dim tra As Odbc.OdbcTransaction
Dim sSql As String

Try
    cnt.Open()
    tra = cnt.BeginTransaction()
    'Setting Primary key to Null cause an error
    sSql = "UPDATE test_ado SET cod=Null WHERE cod ='00004'"
    Dim cmd As New Odbc.OdbcCommand(sSql, cnt)
    cmd.CommandText = sSql
    cmd.Transaction = tra
    cmd.ExecuteNonQuery()

Catch ex As Exception
    MsgBox(ex.Message)
    MsgBox(cnt.State.ToString)
End Try


----------------------------------------------------------------------

>Comment By: Hiroshi Inoue (hinoue)
Date: 2006-03-18 22:01

Message:
This item is duplicated.

----------------------------------------------------------------------

You can respond by visiting: 
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000564&group_id=1000125



^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2006-03-18 22:01 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-02-22 12:23 [ psqlodbc-Bugs-1000563 ] Rollback in manual transaction noreply@pgfoundry.org
2006-02-22 12:23 [ psqlodbc-Bugs-1000564 ] Rollback in manual transaction noreply@pgfoundry.org
2006-03-01 23:47 [ psqlodbc-Bugs-1000563 ] Rollback in manual transaction noreply@pgfoundry.org
2006-03-18 21:56 [ psqlodbc-Bugs-1000563 ] Rollback in manual transaction noreply@pgfoundry.org
2006-03-18 22:01 [ psqlodbc-Bugs-1000564 ] Rollback in manual transaction noreply@pgfoundry.org

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