Modifications to add support for more SQL statements.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@634 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
@@ -3206,7 +3206,7 @@ RCODE F_Row::setNumber64(
|
||||
{
|
||||
case SFLM_NUMBER_TYPE:
|
||||
{
|
||||
if (ui64Value <= 0x7F)
|
||||
if (!bNeg && ui64Value <= 0x7F)
|
||||
{
|
||||
if (RC_BAD( rc = allocColumnDataSpace( pDb, uiColumnNum, 1, FALSE)))
|
||||
{
|
||||
@@ -3592,6 +3592,39 @@ void F_Row::getDataLen(
|
||||
}
|
||||
}
|
||||
|
||||
/*****************************************************************************
|
||||
Desc:
|
||||
******************************************************************************/
|
||||
RCODE F_Row::setValue(
|
||||
F_Db * pDb,
|
||||
FLMUINT uiColumnNum,
|
||||
const FLMBYTE * pucValue,
|
||||
FLMUINT uiValueLen)
|
||||
{
|
||||
RCODE rc = NE_SFLM_OK;
|
||||
|
||||
if (RC_BAD( rc = allocColumnDataSpace( pDb, uiColumnNum, uiValueLen, FALSE)))
|
||||
{
|
||||
goto Exit;
|
||||
}
|
||||
if (uiValueLen)
|
||||
{
|
||||
FLMBYTE * pucTmp = getColumnDataPtr( uiColumnNum);
|
||||
|
||||
f_memcpy( pucTmp, pucValue, uiValueLen);
|
||||
}
|
||||
setRowDirty( pDb, FALSE);
|
||||
|
||||
Exit:
|
||||
|
||||
if( RC_BAD( rc))
|
||||
{
|
||||
pDb->setMustAbortTrans( rc);
|
||||
}
|
||||
|
||||
return( rc);
|
||||
}
|
||||
|
||||
/*****************************************************************************
|
||||
Desc:
|
||||
******************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user