summaryrefslogtreecommitdiffstats
path: root/sources/ogAdmServer.cpp
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2013-06-05 14:52:01 +0000
committerramon <ramongomez@us.es>2013-06-05 14:52:01 +0000
commitcddd96262085124d65067454ee64c362c825a2fc (patch)
tree3775b2c4c55ca270b65bae6765e9d143ccecdbf9 /sources/ogAdmServer.cpp
parentd1e9613709e9e3d340abbea1821af49a689a3ffd (diff)
#601: Integrar código revisión r3855, borrando configuración del cliente antes de volver a crearla.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@3856 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'sources/ogAdmServer.cpp')
-rw-r--r--sources/ogAdmServer.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/sources/ogAdmServer.cpp b/sources/ogAdmServer.cpp
index 521ac0e..9059b45 100644
--- a/sources/ogAdmServer.cpp
+++ b/sources/ogAdmServer.cpp
@@ -735,6 +735,15 @@ BOOLEAN actualizaConfiguracion(Database db, Table tbl, char* cfg, int ido)
char *disk, *par, *cpt, *sfi, *soi, *tam; // Parametros que definen una partición
char modulo[] = "actualizaConfiguracion()";
+ // UHU - 2013/06/05 - se borra la configuracion actual
+ sprintf(sqlstr, "DELETE FROM ordenadores_particiones WHERE idordenador=%d", ido);
+ // Ejecutamos la consulta
+ if (!db.Execute(sqlstr, tbl)) { // Error al recuperar los datos
+ errorLog(modulo, 21, FALSE);
+ db.GetErrorErrStr(msglog);
+ errorInfo(modulo, msglog);
+ return (FALSE);
+ }
lon = sprintf(tbPar, "(");
p = splitCadena(ptrPar, cfg, '\n');