Ticket #1265 (new enhancement)

Opened 2 years ago

Last modified 8 months ago

Code to fix transctions in OGR PostgreSQL driver

Reported by: amagnum2@hotmail.com Assigned to: mloskot
Priority: normal Milestone: 1.6.0
Component: OGR_SF Version: unspecified
Severity: normal Keywords: PostgreSQL
Cc: neteler, warmerdam, mloskot

Description (Last modified by warmerdam)

I have attached the code that would allow for PGSQL transactions. The existing behaviour is that the tranactions work, but sometimes they are commited premateurely. I don't think this affects ogr2ogr or ogrinfo but it does affect people that are trying to do things such as inserting data and then selecting that data, or anything that is more complex than populatinga table.

Note that in order to start a transaction, there must be at least one layer in the database, since the call to begin transaction is in the layer object.

Attachments

ogrpgdatasource.cpp (48.2 kB) - added by amagnum2@hotmail.com on 08/20/06 07:48:48.
ogrpgdatasource.cpp
ogrpglayer.cpp (36.8 kB) - added by amagnum2@hotmail.com on 08/20/06 07:49:14.
ogrpglayer.cpp

Change History

08/20/06 07:48:48 changed by amagnum2@hotmail.com

  • attachment ogrpgdatasource.cpp added.

ogrpgdatasource.cpp

08/20/06 07:49:14 changed by amagnum2@hotmail.com

  • attachment ogrpglayer.cpp added.

ogrpglayer.cpp

04/02/07 23:03:36 changed by warmerdam

  • severity changed from minor to normal.
  • cc changed from neteler@itc.it to neteler@itc.it, warmerdam.
  • priority changed from highest to normal.
  • milestone set to 1.5.0.
  • owner changed from warmerdam to mloskot.
  • description changed.

Matuesz,

When things are settled down, I'd like this patch considered for 1.5.0.

04/03/07 15:56:31 changed by mloskot

  • cc changed from neteler@itc.it, warmerdam to neteler@itc.it, warmerdam, mloskot.

10/29/07 01:32:48 changed by mloskot

  • keywords set to PostgreSQL.

12/11/07 09:14:18 changed by warmerdam

  • milestone changed from 1.5.0 to 1.6.0.

To high risk to do this late in 1.5.

12/29/07 11:46:03 changed by neteler

  • cc changed from neteler@itc.it, warmerdam, mloskot to neteler, warmerdam, mloskot.