Skip to content

Commit 043e74b

Browse files
committed
ADBC: do not try to open in update mode
1 parent 55ebd61 commit 043e74b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ogr/ogrsf_frmts/adbc/ogradbcdriver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
static GDALDataset *OGRADBCDriverOpen(GDALOpenInfo *poOpenInfo)
2121
{
22-
if (!OGRADBCDriverIdentify(poOpenInfo))
22+
if (!OGRADBCDriverIdentify(poOpenInfo) || poOpenInfo->eAccess == GA_Update)
2323
return nullptr;
2424
auto poDS = std::make_unique<OGRADBCDataset>();
2525
if (!poDS->Open(poOpenInfo))

0 commit comments

Comments
 (0)