Opened 18 years ago
Last modified 9 years ago
#1265 closed enhancement
Code to fix transctions in OGR PostgreSQL driver — at Version 2
Reported by: | Owned by: | Mateusz Łoskot | |
---|---|---|---|
Priority: | normal | Milestone: | 2.0.0 |
Component: | OGR_SF | Version: | unspecified |
Severity: | normal | Keywords: | PostgreSQL |
Cc: | Markus Neteler, warmerdam, Mateusz Łoskot |
Description (last modified by )
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 (3)
by , 18 years ago
Attachment: | ogrpgdatasource.cpp added |
---|
comment:2 by , 17 years ago
Cc: | added |
---|---|
Description: | modified (diff) |
Milestone: | → 1.5.0 |
Owner: | changed from | to
Priority: | highest → normal |
Severity: | minor → normal |
Matuesz,
When things are settled down, I'd like this patch considered for 1.5.0.
ogrpgdatasource.cpp