mirror of https://git.48k.eu/ogserver
git-svn-id: https://opengnsys.es/svn/branches/version1.1@4929 a21b9725-9963-47de-94b9-378ad31fedc9master
parent
24df599aa9
commit
b5022791ab
|
|
@ -747,7 +747,7 @@ BOOLEAN actualizaConfiguracion(Database db, Table tbl, char* cfg, int ido)
|
||||||
if (strlen(ser) > 0) {
|
if (strlen(ser) > 0) {
|
||||||
// Solo actualizar si número de serie no existía.
|
// Solo actualizar si número de serie no existía.
|
||||||
sprintf(sqlstr, "UPDATE ordenadores SET numserie='%s'"
|
sprintf(sqlstr, "UPDATE ordenadores SET numserie='%s'"
|
||||||
" WHERE idordenador=%d AND numserie=''",
|
" WHERE idordenador=%d AND numserie IS NULL",
|
||||||
ser, ido);
|
ser, ido);
|
||||||
if (!db.Execute(sqlstr, tbl)) { // Error al insertar
|
if (!db.Execute(sqlstr, tbl)) { // Error al insertar
|
||||||
db.GetErrorErrStr(msglog);
|
db.GetErrorErrStr(msglog);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue