Re: [gdal-dev] transactions and ExecuteSQL

2011-08-19 Thread Even Rouault
Selon Martin Landa : > Hi, > > how to deal with transactions when calling ExecuteSQL()? Example for > PostGIS layer > > """ > poDS = OGRSFDriverRegistrar::Open("PG:dbname=pgis_nc", FALSE); > > poLayer = poDS->GetLayerByName("b_1"); > poLayer->StartTransaction(); > > poDS->ExecuteSQ

[gdal-dev] transactions and ExecuteSQL

2011-08-19 Thread Martin Landa
Hi, how to deal with transactions when calling ExecuteSQL()? Example for PostGIS layer """ poDS = OGRSFDriverRegistrar::Open("PG:dbname=pgis_nc", FALSE); poLayer = poDS->GetLayerByName("b_1"); poLayer->StartTransaction(); poDS->ExecuteSQL("update b_1 set objectid = 5 where cat =