mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-14 16:53:12 +09:00
F #4809: Update Sql database interface to include read/write/bootstrap
operations
This commit is contained in:
1 parent
cd580714ab
commit
a6d4ab3c9f
54 files changed
+162
-122
No files matched your search
@@ -59,7 +59,7 @@ int PoolObjectSQL::select(SqlDB *db)
|
||||
boid = oid;
|
||||
oid = -1;
|
||||
|
||||
rc = db->exec(oss, this);
|
||||
rc = db->exec_rd(oss, this);
|
||||
|
||||
unset_callback();
|
||||
|
||||
@@ -101,7 +101,7 @@ int PoolObjectSQL::select(SqlDB *db, const string& _name, int _uid)
|
||||
name = "";
|
||||
uid = -1;
|
||||
|
||||
rc = db->exec(oss, this);
|
||||
rc = db->exec_rd(oss, this);
|
||||
|
||||
unset_callback();
|
||||
|
||||
@@ -125,7 +125,7 @@ int PoolObjectSQL::drop(SqlDB *db)
|
||||
|
||||
oss << "DELETE FROM " << table << " WHERE oid=" << oid;
|
||||
|
||||
rc = db->exec(oss);
|
||||
rc = db->exec_wr(oss);
|
||||
|
||||
if ( rc == 0 )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user