Skip to content

Commit

Permalink
#86 : Adaptation to linux platform
Browse files Browse the repository at this point in the history
  • Loading branch information
s-takeuchi committed Oct 13, 2024
1 parent 3312a53 commit 0386451
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/restapi/DbAccessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,13 @@ int DbAccessor::GetRecordsByTableNameCommon(SQLTCHAR* TableName,
SQLTCHAR SqlSortBuf[128];
StkPlLStrCpy((wchar_t*)SqlSortBuf, L"");
StkPlSwPrintf((wchar_t*)SqlSortBuf, 128, L" order by %ls %ls", SortTarget, SortOrder);
StkPlWcsCat((wchar_t*)SqlBuf, 1024, SqlSortBuf);
StkPlWcsCat((wchar_t*)SqlBuf, 1024, (wchar_t*)SqlSortBuf);
}
if (Limit != -1 && Offset != -1) {
SQLTCHAR SqlLimitBuf[128];
StkPlLStrCpy((wchar_t*)SqlLimitBuf, L"");
StkPlSwPrintf((wchar_t*)SqlLimitBuf, 128, L" limit %d offset %d", Limit, Offset);
StkPlWcsCat((wchar_t*)SqlBuf, 1024, SqlLimitBuf);
StkPlWcsCat((wchar_t*)SqlBuf, 1024, (wchar_t*)SqlLimitBuf);
}
StkPlWcsCat((wchar_t*)SqlBuf, 1024, L";");
Ret = SQLExecDirect(Hstmt, SqlBuf, SQL_NTS);
Expand Down

0 comments on commit 0386451

Please sign in to comment.