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:
dsandersoremutah
2006-07-05 15:25:36 +00:00
parent d60f9efd0c
commit 30bd367a3d
24 changed files with 4222 additions and 878 deletions

View File

@@ -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:
******************************************************************************/