Fix variable shadowing 62/324462/1 tizen_9.0
authorSangyoon Jang <jeremy.jang@samsung.com>
Thu, 15 May 2025 07:51:00 +0000 (16:51 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Mon, 19 May 2025 06:53:43 +0000 (06:53 +0000)
Change-Id: Ia5288368f15facd687f12e6bb22d90d769c2040c
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
(cherry picked from commit e3117b1259d2948ac27d605edfa56ea713fcb479)

src/tizen-database/database.hpp

index 9560d5ce021b94f281e80e1d98d7df5577a6d98c..53b61ce900c2a347e1ed1a9e43208d18dfa8bccc 100644 (file)
@@ -773,7 +773,7 @@ class Database {
     }
 
     for (const auto& i : sql.GetBindingNameMap()) {
-      int pos = sqlite3_bind_parameter_index(stmt, i.first.c_str());
+      pos = sqlite3_bind_parameter_index(stmt, i.first.c_str());
       if (pos == 0)
         throw DbException("Invalid binding");
       Bind(pos, i.second, stmt);
@@ -810,7 +810,7 @@ class Database {
     }
 
     for (const auto& i : sql.GetBindingNameMap()) {
-      int pos = sqlite3_bind_parameter_index(stmt, i.first.c_str());
+      pos = sqlite3_bind_parameter_index(stmt, i.first.c_str());
       if (pos == 0)
         throw DbException("Invalid binding");
       Bind(pos, i.second, stmt);