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:
@@ -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
|
||||
|
||||
@@ -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 ) );
|
||||
|
||||
Reference in New Issue
Block a user