mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-08 21:16:39 +09:00
Bug: Uses wrong variable for SQL statement
This commit is contained in:
1 parent
03c9e6bc9a
commit
cf4f66069e
1 file changed
+1
-1
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user