2010-03-24 10:24 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)

* contrib/Makefile
  * contrib/rddsql/Makefile
  - contrib/rddsql/sddmy
  + contrib/sddmy
  * contrib/sddmy/Makefile
  * contrib/sddmy/sddmy.hbc
  - contrib/rddsql/sddfb
  + contrib/sddfb
  * contrib/sddfb/Makefile
  * contrib/sddfb/sddfb.hbc
  - contrib/rddsql/sddpg
  + contrib/sddpg
  * contrib/sddpg/Makefile
  * contrib/sddpg/sddpg.hbc
  - contrib/rddsql/sddsqlt3
  + contrib/sddsqlt3
  * contrib/sddsqlt3/Makefile
  * contrib/sddsqlt3/sddsqlt3.hbc
  - contrib/rddsql/sddoci
  + contrib/sddoci
  * contrib/sddoci/sddoci.hbc
  * contrib/sddoci/Makefile
    * Flattened dir structure.

  * contrib/sddfb/sddfb.c
  * contrib/sddsqlt3/sddsqlt3.c
    * Minor formatting.
This commit is contained in:
Viktor Szakats
2010-03-24 09:25:29 +00:00
parent 766cd74186
commit 58be19d9e6
25 changed files with 55 additions and 30 deletions

View File

@@ -17,6 +17,35 @@
past entries belonging to author(s): Viktor Szakats.
*/
2010-03-24 10:24 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/Makefile
* contrib/rddsql/Makefile
- contrib/rddsql/sddmy
+ contrib/sddmy
* contrib/sddmy/Makefile
* contrib/sddmy/sddmy.hbc
- contrib/rddsql/sddfb
+ contrib/sddfb
* contrib/sddfb/Makefile
* contrib/sddfb/sddfb.hbc
- contrib/rddsql/sddpg
+ contrib/sddpg
* contrib/sddpg/Makefile
* contrib/sddpg/sddpg.hbc
- contrib/rddsql/sddsqlt3
+ contrib/sddsqlt3
* contrib/sddsqlt3/Makefile
* contrib/sddsqlt3/sddsqlt3.hbc
- contrib/rddsql/sddoci
+ contrib/sddoci
* contrib/sddoci/sddoci.hbc
* contrib/sddoci/Makefile
* Flattened dir structure.
* contrib/sddfb/sddfb.c
* contrib/sddsqlt3/sddsqlt3.c
* Minor formatting.
2010-03-23 15:19 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbxvm.h
* harbour/src/vm/hvm.c
@@ -47,13 +76,13 @@
* harbour/contrib/rddsql/sddpg/sddpg.c
* harbour/contrib/rddsql/sddsqlt3/sddsqlt3.c
* moved SDD backed specific data from SQLCONNECTION and SQLAREA
to a separate SDDCONN and SDDDATA structures. This helps to
avoid fake type casting and warinings like "break
to a separate SDDCONN and SDDDATA structures. This helps to
avoid fake type casting and warinings like "break
strict-aliasing rules".
* 1 -> HB_TRUE
* formatting, style
! connection array is now array of connection pointers. This
fixes GPF if many connections are created and connection
! connection array is now array of connection pointers. This
fixes GPF if many connections are created and connection
table has to be reallocated
2010-03-23 08:37 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)

View File

@@ -45,6 +45,12 @@ DIRS += \
hbssl \
rddads \
rddsql \
sddmy \
sddpg \
sddfb \
sddoci \
sddodbc \
sddsqlt3 \
# contribs dependent on above
DIRS += \

View File

@@ -13,14 +13,5 @@ C_SOURCES := \
PRG_HEADERS := \
hbrddsql.ch \
DIRS := \
sddmy \
sddpg \
sddfb \
sddoci \
sddodbc \
sddsqlt3 \
include $(TOP)$(ROOT)config/header.mk
include $(TOP)$(ROOT)config/lib.mk
include $(TOP)$(ROOT)config/dir.mk

View File

@@ -2,7 +2,7 @@
# $Id$
#
ROOT := ../../../
ROOT := ../../
include $(TOP)$(ROOT)config/global.mk

View File

@@ -158,14 +158,16 @@ static HB_ERRCODE fbConnect( SQLDDCONNECTION * pConnection, PHB_ITEM pItem )
parambuf[ i++ ] = isc_dpb_user_name;
ul = hb_arrayGetCLen( pItem, 3 );
if ( ul > 255 ) ul = 255;
if ( ul > 255 )
ul = 255;
parambuf[ i++ ] = ( char ) ul;
memcpy( parambuf + i, hb_arrayGetCPtr( pItem, 3 ), ul );
i += ul;
parambuf[ i++ ] = isc_dpb_password;
ul = hb_arrayGetCLen( pItem, 4 );
if ( ul > 255 ) ul = 255;
if ( ul > 255 )
ul = 255;
parambuf[ i++ ] = ( char ) ul;
memcpy( parambuf + i, hb_arrayGetCPtr( pItem, 4 ), ul );
i += ul;
@@ -494,7 +496,7 @@ static HB_ERRCODE fbGoTo( SQLBASEAREAP pArea, HB_ULONG ulRecNo )
case SQL_LONG:
pItem = hb_itemPutNL( NULL, * ( long * ) pVar->sqldata );
break;
break;
case SQL_FLOAT:
pItem = hb_itemPutND( NULL, * ( float * ) pVar->sqldata );

View File

@@ -5,4 +5,4 @@
libs=sddfb
libs=fbclient
libs=../rddsql.hbc
libs=../rddsql/rddsql.hbc

View File

@@ -2,7 +2,7 @@
# $Id$
#
ROOT := ../../../
ROOT := ../../
include $(TOP)$(ROOT)config/global.mk

View File

@@ -6,4 +6,4 @@ libs=sddmy
{unix}libs=mysqlclient
{!unix}libs=libmysql
libs=../rddsql.hbc
libs=../rddsql/rddsql.hbc

View File

@@ -2,7 +2,7 @@
# $Id$
#
ROOT := ../../../
ROOT := ../../
include $(TOP)$(ROOT)config/global.mk

View File

@@ -7,4 +7,4 @@ libs=sddoci
{HB_WITH_OCILIB_MIXED}libs=ocilibm
{!HB_WITH_OCILIB_UNICODE&!HB_WITH_OCILIB_MIXED}libs=ociliba
libs=../rddsql.hbc
libs=../rddsql/rddsql.hbc

View File

@@ -2,7 +2,7 @@
# $Id$
#
ROOT := ../../../
ROOT := ../../
include $(TOP)$(ROOT)config/global.mk

View File

@@ -6,4 +6,4 @@ libs=sddpg
{unix}libs=pq
{!unix}libs=libpq
libs=../rddsql.hbc
libs=../rddsql/rddsql.hbc

View File

@@ -2,7 +2,7 @@
# $Id$
#
ROOT := ../../../
ROOT := ../../
include $(TOP)$(ROOT)config/global.mk

View File

@@ -195,9 +195,7 @@ static HB_ERRCODE sqlite3Connect( SQLDDCONNECTION * pConnection, PHB_ITEM pItem
( ( SDDCONN * ) pConnection->pSDDConn )->pDb = db;
}
else
{
sqlite3_close( db );
}
hb_strfree( hConn );
return db ? HB_SUCCESS : HB_FAILURE;
@@ -415,9 +413,8 @@ static HB_ERRCODE sqlite3Close( SQLBASEAREAP pArea )
SDDDATA * pSDDData = ( SDDDATA * ) pArea->pSDDData;
if( pSDDData->pStmt )
{
sqlite3_finalize( pSDDData->pStmt );
}
hb_xfree( pSDDData );
return HB_SUCCESS;
}

View File

@@ -5,4 +5,4 @@
libs=sddsqlt3
libs=sqlite3
libs=../rddsql.hbc
libs=../rddsql/rddsql.hbc