Bug: Uses wrong variable for SQL statement

This commit is contained in:
Ruben S. Montero committed 2011-10-22 22:43:47 +02:00
1 parent 03c9e6bc9a
commit cf4f66069e
1 file changed
+1 -1
+1 -1
View File
@@ -84,7 +84,7 @@ int PoolObjectSQL::select(SqlDB *db, const string& _name, int _uid)
set_callback(
static_cast<Callbackable::Callback>(&PoolObjectSQL::select_cb));
oss << "SELECT body FROM " << table << " WHERE name = '" <<_name << "'";
oss << "SELECT body FROM " << table << " WHERE name = '" << sql_name << "'";
if ( _uid != -1 )
{