This commit is contained in:
2020-12-07 21:46:27 +08:00
parent b72efb0b1e
commit 8c6fef3c46
4 changed files with 82 additions and 54 deletions

View File

@@ -1,4 +1,4 @@
//如果文件是utf-8编码存放要注意sql语句编码和ocilib库版本的问题。
//如果文件是utf-8编码存放要注意sql语句编码和ocilib库版本的问题。
#include <ocilib.hpp>
#include <stdexcept>
#include <QString>
@@ -39,7 +39,7 @@ void ImportCarDealerAchievementToOracleCpp( const std::string &
{
Environment::Initialize();
}
catch ( exception & error )
catch ( Exception & error )
{
string errorMessage = "ocilib初始化失败";
errorMessage.append( error.what() );
@@ -98,7 +98,7 @@ void ImportCarDealerAchievementToOracleCpp( const std::string &
pStmt->ExecutePrepared();
}
}
catch ( exception & error )
catch ( Exception & error )
{
string errorMessage = "语句执行失败!";
errorMessage.append( error.what() );