2013-05-22 14:15 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)

* contrib/sddpg/core.c
    ! added missing parentheses in last commit
This commit is contained in:
Mindaugas Kavaliauskas
2013-05-22 14:18:11 +03:00
parent 880d9c4a30
commit c082b1b1f4
2 changed files with 6 additions and 2 deletions

View File

@@ -10,8 +10,12 @@
* Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment
*/
2013-05-22 14:15 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* contrib/sddpg/core.c
! added missing parentheses in last commit
2013-05-22 13:29 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* /contrib/sddpg/core.c
* contrib/sddpg/core.c
+ enhanced connection parameters support. Now it is possible to connect
to PostgreSQL server using:
1) URI string

View File

@@ -172,7 +172,7 @@ static HB_ERRCODE pgsqlConnect( SQLDDCONNECTION * pConnection, PHB_ITEM pItem )
const char * pszHost;
pszHost = hb_arrayGetCPtr( pItem, 2 );
if( pszHost && strncmp( pszHost, "postgresql://", 13 ) == 0 || strchr( pszHost, '=' ) )
if( pszHost && ( strncmp( pszHost, "postgresql://", 13 ) == 0 || strchr( pszHost, '=' ) ) )
pConn = PQconnectdb( pszHost );
else
pConn = PQsetdbLogin( pszHost, hb_arrayGetCPtr( pItem, 6 ), hb_arrayGetCPtr( pItem, 7 ), hb_arrayGetCPtr( pItem, 8 ), hb_arrayGetCPtr( pItem, 5 ), hb_arrayGetCPtr( pItem, 3 ), hb_arrayGetCPtr( pItem, 4 ) );