Skip to content

Commit

Permalink
fix a error
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr.Abc committed Aug 19, 2023
1 parent b87250b commit 8b8758e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/header/CASSQLItem.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class CASSQLItem : public CASBaseGCObject{
uint64 GetUInt64();
uint32 GetUInt();
double GetReal();
CBinaryStringBuilder** GetBlob();
CBinaryStringBuilder* GetBlob();
bool IsNull();
private:
void SetData(char* str);
Expand Down
4 changes: 2 additions & 2 deletions src/source/CASSQLItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ double CASSQLItem::GetReal(){
return std::atof(m_szData.c_str());
}

CBinaryStringBuilder** CASSQLItem::GetBlob(){
CBinaryStringBuilder* CASSQLItem::GetBlob(){
CASServerManager* manager = ASEXT_GetServerManager();
asIScriptEngine* engine = manager->scriptEngine;
CBinaryStringBuilder* pBlob = static_cast<CBinaryStringBuilder*>(engine->CreateScriptObject(m_pBlobInfo));
pBlob->WriteData(m_szData.c_str(), m_szData.size());
return &pBlob;
return pBlob;
}

bool CASSQLItem::IsNull(){
Expand Down

0 comments on commit 8b8758e

Please sign in to comment.