2010-03-02 00:45 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/rddsql/sddodbc/sddodbc.c
! Fixed returning Chr( 0 ) instead of last real char.
This commit is contained in:
@@ -17,6 +17,10 @@
|
||||
past entries belonging to author(s): Viktor Szakats.
|
||||
*/
|
||||
|
||||
2010-03-02 00:45 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
|
||||
* contrib/rddsql/sddodbc/sddodbc.c
|
||||
! Fixed returning Chr( 0 ) instead of last real char.
|
||||
|
||||
2010-03-01 14:45 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
|
||||
* contrib/rddsql/sddodbc/sddodbc.c
|
||||
+ Added support to return any size of string buffer from ODBC.
|
||||
|
||||
@@ -594,8 +594,8 @@ static HB_ERRCODE odbcGoTo( SQLBASEAREAP pArea, HB_ULONG ulRecNo )
|
||||
{
|
||||
if( iLen > 0 )
|
||||
{
|
||||
SQLPOINTER * val = ( SQLPOINTER * ) hb_xgrab( iLen );
|
||||
if( SQL_SUCCEEDED( res = SQLGetData( hStmt, ui, iTargetType, val, iLen, &iLen ) ) )
|
||||
SQLPOINTER * val = ( SQLPOINTER * ) hb_xgrab( iLen + sizeof( O_HB_CHAR ) );
|
||||
if( SQL_SUCCEEDED( res = SQLGetData( hStmt, ui, iTargetType, val, iLen + sizeof( O_HB_CHAR ), &iLen ) ) )
|
||||
{
|
||||
#if defined( UNICODE )
|
||||
iLen /= 2;
|
||||
|
||||
Reference in New Issue
Block a user