Skip to content

Commit

Permalink
Turned autocommit to on by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Chapligin committed Feb 20, 2013
1 parent bfc28f1 commit 00ba258
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/backends/db2/session.cpp
Expand Up @@ -53,12 +53,11 @@ void db2_session_backend::parseKeyVal(std::string const & keyVal) {
if (!key.compare("Pwd")) {
this->password=value;
}
this->autocommit=true; //Default value
if (!key.compare("autocommit")) {
if (!value.compare("off")) {
this->autocommit=false;
} else {
this->autocommit=true;
}
}
}
}

Expand Down

0 comments on commit 00ba258

Please sign in to comment.