You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_stprintf(tszSQLStatement, _T("DELETE FROM `KeyOwner` WHERE tszUserName = '%s' AND tszKeyName = '%s'"), pSt_DBOwner->tszUserName, pSt_DBOwner->tszQueueName);
902
-
if (!DataBase_MySQL_Execute(xhDBSQL, tszSQLStatement, &nAffectRow))
901
+
if ((_tcslen(pSt_DBOwner->tszUserName) > 0) && (_tcslen(pSt_DBOwner->tszQueueName) > 0))
903
902
{
904
-
DBModule_IsErrorOccur = TRUE;
905
-
DBModule_dwErrorCode = DataBase_GetLastError();
906
-
returnFALSE;
903
+
_stprintf(tszSQLStatement, _T("DELETE FROM `KeyOwner` WHERE tszUserName = '%s' AND tszKeyName = '%s'"), pSt_DBOwner->tszUserName, pSt_DBOwner->tszQueueName);
904
+
if (!DataBase_MySQL_Execute(xhDBSQL, tszSQLStatement, &nAffectRow))
0 commit comments