2000-10-10 12:50 GMT+3 Alexander Kresin <alex@belacy.belgorod.su>

This commit is contained in:
Alexander S.Kresin
2000-10-10 08:50:37 +00:00
parent 019d2078ae
commit 52001a3df2
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
2000-10-10 12:50 GMT+3 Alexander Kresin <alex@belacy.belgorod.su>
* contrib/mysql/mysql.c
* Fix in sqlConnect() for support of versions > 3.22.00
2000-10-10 10:58 GMT+3 Alexander Kresin <alex@belacy.belgorod.su>
* source/rdd/dbfcdx/dbfcdx1.h
* added #pragma pack(1) and #pragma pack() for structure alignment

View File

@@ -58,7 +58,8 @@ HB_FUNC(SQLCONNECT) // MYSQL *mysql_real_connect(MYSQL*, char * host, char * use
#if MYSQL_VERSION_ID > 32200
/* from 3.22.x of MySQL there is a new parameter in mysql_real_connect() call, that is char * db
which is not used here */
mysql = mysql_real_connect(NULL, _parc(1), _parc(2), _parc(3), NULL, 0, NULL, 0);
if ( (mysql = mysql_init((MYSQL*) 0)) )
mysql_real_connect( mysql, _parc(1), _parc(2), _parc(3), NULL, 0, NULL, 0);
#else
mysql = mysql_real_connect(NULL, _parc(1), _parc(2), _parc(3), 0, NULL, 0);
#endif