Add test if flush fails

This commit is contained in:
Laurent Destailleur 2010-01-19 23:53:13 +00:00
parent 0146ba83bf
commit 637712212b
2 changed files with 13 additions and 6 deletions

View File

@ -1024,6 +1024,10 @@ class DoliDb
dol_syslog("mysql.lib::DDLCreateUser sql=".$sql,LOG_DEBUG); dol_syslog("mysql.lib::DDLCreateUser sql=".$sql,LOG_DEBUG);
$resql=$this->query($sql); $resql=$this->query($sql);
if (! $resql)
{
return -1;
}
return 1; return 1;
} }

View File

@ -1018,6 +1018,7 @@ class DoliDb
$resql=$this->query($sql); $resql=$this->query($sql);
if (! $resql) if (! $resql)
{ {
dol_syslog("mysqli.lib::DDLCreateUser sql=".$sql, LOG_ERR);
return -1; return -1;
} }
@ -1030,6 +1031,7 @@ class DoliDb
$resql=$this->query($sql); $resql=$this->query($sql);
if (! $resql) if (! $resql)
{ {
dol_syslog("mysqli.lib::DDLCreateUser sql=".$sql, LOG_ERR);
return -1; return -1;
} }
@ -1039,6 +1041,7 @@ class DoliDb
$resql=$this->query($sql); $resql=$this->query($sql);
if (! $resql) if (! $resql)
{ {
dol_syslog("mysqli.lib::DDLCreateUser sql=".$sql, LOG_ERR);
return -1; return -1;
} }