diff options
author | ramon <ramongomez@us.es> | 2012-10-24 11:13:47 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2012-10-24 11:13:47 +0000 |
commit | bde13895a561b10fbe11ad861d4b2a927387795b (patch) | |
tree | ef6d70c4370a16e9e2d6ef390a0bbe4aade5ff2a /sources/ogAdmServer.cpp | |
parent | 7f46c452063f1efb86ddc404b9c79f8b7de3d69e (diff) |
#559: Se quitan las líneas de depuración que añaden información de inserción en la base de datos al log de {{{ogAdmServer}}}.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@3374 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'sources/ogAdmServer.cpp')
-rw-r--r-- | sources/ogAdmServer.cpp | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/sources/ogAdmServer.cpp b/sources/ogAdmServer.cpp index 8c34e06..876c6c9 100644 --- a/sources/ogAdmServer.cpp +++ b/sources/ogAdmServer.cpp @@ -763,7 +763,6 @@ BOOLEAN actualizaConfiguracion(Database db, Table tbl, char* cfg, int ido) sprintf(sqlstr, "INSERT INTO ordenadores_particiones(idordenador,numdisk,numpar,codpar,tamano,idsistemafichero,idnombreso,idimagen)" " VALUES(%d,%s,%s,0x%s,%s,%d,%d,0)", ido, disk, par, cpt, tam, idsfi, idsoi); - errorInfo(modulo,sqlstr); if (!db.Execute(sqlstr, tbl)) { // Error al insertar db.GetErrorErrStr(msglog); errorInfo(modulo, msglog); @@ -870,8 +869,7 @@ int checkDato(Database db, Table tbl, char *dato, const char*tabla, return (0); } if (tbl.ISEOF()) { // Software NO existente - sprintf(sqlstr, "INSERT INTO %s (%s) VALUES('%s')", tabla, nomdato, - dato); + sprintf(sqlstr, "INSERT INTO %s (%s) VALUES('%s')", tabla, nomdato, dato); if (!db.Execute(sqlstr, tbl)) { // Error al insertar db.GetErrorErrStr(msglog); // Error al acceder al registro errorInfo(modulo, msglog); @@ -2300,8 +2298,7 @@ BOOLEAN actualizaHardware(Database db, Table tbl, char* hrd, char*ido, } if (tbl.ISEOF()) { // Hardware NO existente - sprintf(sqlstr, - "INSERT hardwares (idtipohardware,descripcion,idcentro,grupoid) " + sprintf(sqlstr, "INSERT hardwares (idtipohardware,descripcion,idcentro,grupoid) " " VALUES(%d,'%s',%s,0)", idtipohardware, dualHardware[1], idc); if (!db.Execute(sqlstr, tbl)) { // Error al insertar @@ -2414,7 +2411,7 @@ BOOLEAN cuestionPerfilHardware(Database db, Table tbl, char* idc, char* ido, } if (tbl.ISEOF()) { // No existe un perfil hardware con esos componentes de componentes hardware, lo crea sprintf(sqlstr, "INSERT perfileshard (descripcion,idcentro,grupoid)" - " VALUES('Perfil hardware (%s) ',%s,0)", npc, idc); + " VALUES('Perfil hardware (%s) ',%s,0)", npc, idc); if (!db.Execute(sqlstr, tbl)) { // Error al insertar db.GetErrorErrStr(msglog); errorInfo(modulo, msglog); @@ -2439,8 +2436,7 @@ BOOLEAN cuestionPerfilHardware(Database db, Table tbl, char* idc, char* ido, } // Crea la relación entre perfiles y componenetes hardware for (i = 0; i < lon; i++) { - sprintf(sqlstr, - "INSERT perfileshard_hardwares (idperfilhard,idhardware)" + sprintf(sqlstr, "INSERT perfileshard_hardwares (idperfilhard,idhardware)" " VALUES(%d,%d)", nwidperfilhard, tbidhardware[i]); if (!db.Execute(sqlstr, tbl)) { // Error al insertar db.GetErrorErrStr(msglog); @@ -2653,8 +2649,7 @@ BOOLEAN actualizaSoftware(Database db, Table tbl, char* sft, char* par, } if (tbl.ISEOF()) { // Software NO existente - sprintf(sqlstr, - "INSERT INTO softwares (idtiposoftware,descripcion,idcentro,grupoid)" + sprintf(sqlstr, "INSERT INTO softwares (idtiposoftware,descripcion,idcentro,grupoid)" " VALUES(2,'%s',%s,0)", tbSoftware[i], idc); if (!db.Execute(sqlstr, tbl)) { // Error al insertar @@ -2768,7 +2763,7 @@ BOOLEAN cuestionPerfilSoftware(Database db, Table tbl, char* idc, char* ido, } if (tbl.ISEOF()) { // No existe un perfil software con esos componentes de componentes software, lo crea sprintf(sqlstr, "INSERT perfilessoft (descripcion,idcentro,grupoid)" - " VALUES('Perfil Software (%s, Part:%s) ',%s,0)", npc, par, idc); + " VALUES('Perfil Software (%s, Part:%s) ',%s,0)", npc, par, idc); if (!db.Execute(sqlstr, tbl)) { // Error al insertar db.GetErrorErrStr(msglog); errorInfo(modulo, msglog); |