diff --git a/include/SQLiteCpp/Savepoint.h b/include/SQLiteCpp/Savepoint.h index ab5fd22..0c0fba6 100644 --- a/include/SQLiteCpp/Savepoint.h +++ b/include/SQLiteCpp/Savepoint.h @@ -84,7 +84,9 @@ public: /** * @brief Rollback to the savepoint, but don't release it. */ - void rollback(); + void rollbackTo(); + // @deprecated same as rollbackTo(); + void rollback() { rollbackTo(); } private: Database& mDatabase; ///< Reference to the SQLite Database Connection diff --git a/src/Savepoint.cpp b/src/Savepoint.cpp index 64a1580..bf9a379 100644 --- a/src/Savepoint.cpp +++ b/src/Savepoint.cpp @@ -66,7 +66,7 @@ void Savepoint::release() } // Rollback to the savepoint, but don't release it -void Savepoint::rollback() +void Savepoint::rollbackTo() { if (!mbReleased) {