From cddd96262085124d65067454ee64c362c825a2fc Mon Sep 17 00:00:00 2001 From: ramon Date: Wed, 5 Jun 2013 14:52:01 +0000 Subject: #601: Integrar código revisión r3855, borrando configuración del cliente antes de volver a crearla. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://opengnsys.es/svn/branches/version1.0@3856 a21b9725-9963-47de-94b9-378ad31fedc9 --- sources/ogAdmServer.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sources') 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'); -- cgit v1.2.3-18-g5258