1
0
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:
Ruben S. Montero 2011-10-22 22:43:47 +02:00
parent 03c9e6bc9a
commit cf4f66069e

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 )
{