Remove unused SqlConnection::DataCommand::Reset 09/238509/1
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Tue, 14 Jul 2020 15:31:44 +0000 (17:31 +0200)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Tue, 14 Jul 2020 16:27:19 +0000 (18:27 +0200)
Change-Id: Ib4279ccd14c6066efc980ec00bd63e76b699ca6a

src/manager/dpl/db/include/dpl/db/sql_connection.h
src/manager/dpl/db/src/sql_connection.cpp

index 063e05b..4ac3d5f 100644 (file)
@@ -261,12 +261,6 @@ public:
                bool Step();
 
                /**
-                * Reset prepared statement's arguments
-                * All parameters will become null
-                */
-               void Reset();
-
-               /**
                 * Checks whether column value is null
                 *
                 * @throw Exception::InvalidColumn
index 3aa5b72..42744e3 100644 (file)
@@ -378,21 +378,6 @@ bool SqlConnection::DataCommand::Step()
        ThrowMsg(Exception::InternalError, "sqlite permanently busy");
 }
 
-void SqlConnection::DataCommand::Reset()
-{
-       /*
-        * According to:
-        * http://www.sqllite.org/c3ref/stmt.html
-        *
-        * if last sqlite3_step command on this stmt returned an error,
-        * then sqlite3_reset will return that error, althought it is not an error.
-        * So sqlite3_reset allways succedes.
-        */
-       sqlite3_reset(m_stmt);
-
-       LogPedantic("SQL data command reset");
-}
-
 void SqlConnection::DataCommand::CheckColumnIndex(
        SqlConnection::ColumnIndex column)
 {