Skip to content

Commit e6212c8

Browse files
author
Ivan Pizhenko
committed
Added commit and rollback support
1 parent 9108f03 commit e6212c8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/libmysqlclient_cpp_wrapper.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,12 @@ class MySQLConnection {
171171

172172
void commit()
173173
{
174+
::mysql_commit(m_mysql);
175+
}
176+
177+
void rollback()
178+
{
179+
::mysql_rollback(m_mysql);
174180
}
175181

176182
private:

0 commit comments

Comments
 (0)