Commit 93479b9a by guanghui.cui

1、latin1字符写入sqlite 在POS中直接写入

2、makefile:指定程序动态链接库路径路径
parent 7ce61746
No preview for this file type
......@@ -20,7 +20,7 @@ SRCS := utility/utility.cpp\
LDFLAGSSO := -std=c++11 `mysql_config --cflags --libs` -fPIC -shared
LDFLAGS := -std=c++11 -lboost_regex -lboost_system -lboost_filesystem -lOrderInfo -lsqlite3 -lpthread -L.
LDFLAGS := -std=c++11 -lOrderInfo -lsqlite3 -lpthread -L. -Wl,-rpath,'$$ORIGIN'
all:
$(CXX) $(SRCSSO) $(LDFLAGSSO) -o ./bin/libOrderInfo.so
......
......@@ -71,7 +71,7 @@ int COrderInfo::Init()
snprintf(mysql->sqlStr,SQL_BUFFER_SIZE,"INSERT INTO tbl_PayMethod\
(PayNo, SeqNo, Name3, EmpPayLevel, PayClass, PmsAskAccount)\
VALUES (%d, %d,'%s', 5, 3, 0)",
payType, payType, UTF8ToLatin1(vecTakewayTypes[i].strName.c_str()));
payType, payType, vecTakewayTypes[i].strName.c_str());
nErrCode = mysql->insert();
if(nErrCode != EC_OK)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment