mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-20 10:35:50 +00:00
.
This commit is contained in:
@@ -211,3 +211,29 @@ void WinDatabase::endIterRows()
|
|||||||
rc = SQLFreeStmt(hstmt, SQL_CLOSE);
|
rc = SQLFreeStmt(hstmt, SQL_CLOSE);
|
||||||
mystmt(hstmt,rc);
|
mystmt(hstmt,rc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
void WinDatabase::escape(const unsigned char* start,int size,std::string& retStr)
|
||||||
|
{
|
||||||
|
retStr=(char*)start;
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
int WinDatabase::getLastInsertID()
|
||||||
|
{
|
||||||
|
return(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
uint64 WinDatabase::getBigInt(int colIndex)
|
||||||
|
{
|
||||||
|
colIndex++;
|
||||||
|
uint64 ret=0;
|
||||||
|
SQLRETURN rc = SQLGetData(hstmt,colIndex,SQL_INTEGER,&ret,sizeof(uint64),NULL);
|
||||||
|
mystmt(hstmt,rc);
|
||||||
|
return(ret);
|
||||||
|
}
|
||||||
|
// TODO:
|
||||||
|
int WinDatabase::getBinary(int colIndex,unsigned char* buf,int maxSize)
|
||||||
|
{
|
||||||
|
return(0);
|
||||||
|
}
|
||||||
@@ -121,7 +121,7 @@ int main(int argc, char* argv[])
|
|||||||
for (int i=0; i != iCmd; ++i)
|
for (int i=0; i != iCmd; ++i)
|
||||||
pvCmd[i] = (char*) (vCmd[0].c_str());
|
pvCmd[i] = (char*) (vCmd[0].c_str());
|
||||||
|
|
||||||
iResult = unit_test_main(init_unit_test, iCmd, &pvCmd.front());
|
//iResult = unit_test_main(init_unit_test, iCmd, &pvCmd.front());
|
||||||
}
|
}
|
||||||
else if (!vm.count("parameters"))
|
else if (!vm.count("parameters"))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user