Checked in all ODBC stuff

git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@1014 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
dsandersoremutah
2007-02-08 19:48:35 +00:00
parent 90929b6395
commit 5b0a6fe8b5
17 changed files with 424 additions and 103 deletions

View File

@@ -3313,8 +3313,10 @@ RCODE F_Row::setBinary(
const void * pvValue,
FLMUINT uiValueLen)
{
RCODE rc = NE_SFLM_OK;
RCODE rc = NE_SFLM_OK;
F_TABLE * pTable;
F_COLUMN * pColumn;
if (RC_BAD( rc = allocColumnDataSpace( pDb, uiColumnNum, uiValueLen, FALSE)))
{
goto Exit;
@@ -3445,19 +3447,38 @@ Desc:
******************************************************************************/
RCODE F_Row::setValue(
F_Db * pDb,
FLMUINT uiColumnNum,
F_COLUMN * pColumn,
const FLMBYTE * pucValue,
FLMUINT uiValueLen)
{
RCODE rc = NE_SFLM_OK;
// Make sure this is not a read-only column
if (pColumn->uiFlags & COL_READ_ONLY)
{
rc = RC_SET( NE_SFLM_COLUMN_IS_READ_ONLY);
goto Exit;
}
if (RC_BAD( rc = allocColumnDataSpace( pDb, uiColumnNum, uiValueLen, FALSE)))
// If a length of zero is specified, we have a NULL value. Make sure
// that is legal.
if (!uiValueLen &&
!(pColumn->uiFlags & COL_NULL_ALLOWED))
{
rc = RC_SET( NE_SFLM_NULL_NOT_ALLOWED_IN_COLUMN);
goto Exit;
}
if (RC_BAD( rc = allocColumnDataSpace( pDb, pColumn->uiColumnNum, uiValueLen, FALSE)))
{
goto Exit;
}
if (uiValueLen)
{
FLMBYTE * pucTmp = getColumnDataPtr( uiColumnNum);
FLMBYTE * pucTmp = getColumnDataPtr( pColumn->uiColumnNum);
f_memcpy( pucTmp, pucValue, uiValueLen);
}