Code to fix transctions in OGR PostgreSQL driver
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.
Change History
(13)
Cc: |
warmerdam added
|
Description: |
modified (diff)
|
Milestone: |
→ 1.5.0
|
Owner: |
changed from warmerdam to Mateusz Łoskot
|
Priority: |
highest → normal
|
Severity: |
minor → normal
|
Keywords: |
PostgreSQL added
|
Cc: |
Markus Neteler added; neteler@… removed
|
Owner: |
changed from Mateusz Łoskot to Even Rouault
|
Milestone: |
→ 2.0
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
ogrpgdatasource.cpp