summaryrefslogtreecommitdiffstats
path: root/sources/ogAdmServer.cpp
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2013-05-27 11:09:40 +0000
committerramon <ramongomez@us.es>2013-05-27 11:09:40 +0000
commitd1e9613709e9e3d340abbea1821af49a689a3ffd (patch)
treedf4bd2c80bb7c415c77e7bfa240e276c8ac46728 /sources/ogAdmServer.cpp
parentb9372988652c8346dda2254909fafce529707e20 (diff)
#601: Si no se obtiene código de partición, asignar a 0 ({{{EMPTY}}}).
git-svn-id: https://opengnsys.es/svn/branches/version1.0@3828 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'sources/ogAdmServer.cpp')
-rw-r--r--sources/ogAdmServer.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/sources/ogAdmServer.cpp b/sources/ogAdmServer.cpp
index 39a4d26..521ac0e 100644
--- a/sources/ogAdmServer.cpp
+++ b/sources/ogAdmServer.cpp
@@ -747,8 +747,12 @@ BOOLEAN actualizaConfiguracion(Database db, Table tbl, char* cfg, int ido)
splitCadena(ptrDual, ptrCfg[1], '=');
par = ptrDual[1]; // Número de partición
- splitCadena(ptrDual, ptrCfg[2], '=');
- cpt = ptrDual[1]; // Código de partición
+ k=splitCadena(ptrDual, ptrCfg[2], '=');
+ if(k==2){
+ cpt = ptrDual[1]; // Código de partición
+ }else{
+ cpt = "0";
+ }
k=splitCadena(ptrDual, ptrCfg[3], '=');
if(k==2){