2010-09-29 21:20 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)

* harbour/contrib/sddodbc/sddodbc.c
    ! fixed getting of empty string value. Thanks David Monta\~no for
      bug report
    ; Please, test
This commit is contained in:
Mindaugas Kavaliauskas
2010-09-29 18:20:53 +00:00
parent bc9d41c93b
commit 54b14ed50f
2 changed files with 7 additions and 1 deletions

View File

@@ -16,6 +16,12 @@
The license applies to all entries newer than 2009-04-28.
*/
2010-09-29 21:20 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/contrib/sddodbc/sddodbc.c
! fixed getting of empty string value. Thanks David Monta\~no for
bug report
; Please, test
2010-09-29 10:51 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbxbp/xbp3state.prg
* contrib/hbxbp/xbpappevent.prg

View File

@@ -631,7 +631,7 @@ static HB_ERRCODE odbcGoTo( SQLBASEAREAP pArea, HB_ULONG ulRecNo )
if( SQL_SUCCEEDED( res = SQLGetData( hStmt, ui, iTargetType, buffer, 0, &iLen ) ) )
{
if( iLen > 0 )
if( iLen >= 0 )
{
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 ) ) )