mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-19 06:50:07 +03:00
Bug: Uses wrong variable for SQL statement
This commit is contained in:
parent
03c9e6bc9a
commit
cf4f66069e
@ -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 )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user