Skip to content

Commit 4036b69

Browse files
committed
Changed transaction type for guard table exists check.
1 parent 4cd3183 commit 4036b69

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/moja.modules.cbm/src/cbmaggregatorhybridlibpqxxwriter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ namespace cbm {
6767

6868
std::string guardTable = (boost::format("completed_%1%") % _jobId).str();
6969
bool resultsPreviouslyLoaded = perform([&chConn, &guardTable, this] {
70-
return nontransaction(chConn).exec((boost::format(
70+
return read_transaction(chConn).exec((boost::format(
7171
"EXISTS TABLE %1%.%2%;"
7272
) % _schema % guardTable).str()).at(0, 0).as<int>() == 1;
7373
});

0 commit comments

Comments
 (0)