Skip to content

Commit 241ac97

Browse files
committed
fixed:db moudle build error for linux
1 parent ce3cde3 commit 241ac97

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

XEngine_Source/MQCore_DBModule/DBModule_MQData/DBModule_MQData.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,6 @@ bool CDBModule_MQData::DBModule_MQData_CreateTable(LPCXSTR lpszQueueName)
576576
{
577577
DBModule_IsErrorOccur = false;
578578

579-
int nUTFLen = 0;
580579
XCHAR tszSQLQuery[2048];
581580
XCHAR tszUTFQuery[2048];
582581

@@ -599,6 +598,7 @@ bool CDBModule_MQData::DBModule_MQData_CreateTable(LPCXSTR lpszQueueName)
599598
), lpszQueueName);
600599

601600
#ifdef _MSC_BUILD
601+
int nUTFLen = 0;
602602
BaseLib_OperatorCharset_AnsiToUTF(tszSQLQuery, tszUTFQuery, &nUTFLen);
603603
if (!DataBase_MySQL_Execute(xhDBSQL, tszUTFQuery))
604604
#else

XEngine_Source/MQCore_DBModule/DBModule_MQUser/DBModule_MQUser.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -711,11 +711,11 @@ bool CDBModule_MQUser::DBModule_MQUser_TimeQuery(XENGINE_DBTIMERELEASE*** pppSt_
711711
}
712712
if (NULL != pptszResult[3])
713713
{
714-
(*pppSt_DBInfo)[i]->bActive = _ttoi(pptszResult[3]);
714+
(*pppSt_DBInfo)[i]->bActive = _ttxoi(pptszResult[3]);
715715
}
716716
if (NULL != pptszResult[4])
717717
{
718-
(*pppSt_DBInfo)[i]->bBreak = _ttoi(pptszResult[4]);
718+
(*pppSt_DBInfo)[i]->bBreak = _ttxoi(pptszResult[4]);
719719
}
720720
if (NULL != pptszResult[5])
721721
{

0 commit comments

Comments
 (0)