? ? Pending

User tests: Successful: Unsuccessful:

avatar zero-24
zero-24
26 Jan 2018

Pull Request for Issue #18578 cc: @irbian

Summary of Changes

Add the port option to the PostgreSQL driver

Testing Instructions

Steps to reproduce the issue

Have a connection on a port different than the default and try to make a query on it

        $options = array();
        
        $options['driver']   = 'postgresql';        
        $options['host']     = '192.192.192.192';
        $options['port'] = '15432'; 
        $options['user']     = 'myuser';       
        $options['password'] = 'mypassword'; 
        $options['database'] = 'MYDATABASE';
        $options['prefix']   = '';             
        
        $dbo =  JDatabaseDriver::getInstance( $options );

Expected result

I expect to work

Actual result

"Error connecting to PGSQL database."

Open Points

avatar zero-24 zero-24 - open - 26 Jan 2018
avatar zero-24 zero-24 - change - 26 Jan 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 26 Jan 2018
Category Postgresql Libraries
avatar mbabker
mbabker - comment - 26 Jan 2018

FWIW the Framework handled this a bit differently, see joomla/joomla-framework#141 for the PR adding it (implementation is basically still the same now).

And no, I don't think you need the same type of detection as the MySQLi driver. That honestly seems really verbose for reasons I don't understand without getting into the commit logs.

avatar zero-24 zero-24 - change - 26 Jan 2018
Labels Added: ?
avatar zero-24
zero-24 - comment - 26 Jan 2018

Thanks @mbabker i have just implemented the port detection from the framework! @irbian please feel free to test this one.

avatar zero-24 zero-24 - change - 26 Jan 2018
The description was changed
avatar zero-24 zero-24 - edited - 26 Jan 2018
avatar zero-24
zero-24 - comment - 28 Jul 2018

What is holding us back from testing and merging this thing or should this just be closed as the interest is gone?

avatar mbabker
mbabker - comment - 28 Jul 2018

What is holding us back from testing and merging this thing

Finding the 3 people who actually use Joomla with PostgreSQL support and getting their feedback?

avatar alikon
alikon - comment - 29 Jul 2018

i've tested successully on not default port like 5444

avatar alikon alikon - test_item - 29 Jul 2018 - Tested successfully
avatar alikon
alikon - comment - 29 Jul 2018

I have tested this item successfully on de3d104


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19466.

avatar twister65
twister65 - comment - 19 Sep 2018

I can not find a port number field in the System -> Global configuration -> Server -> Database Settings form.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19466.
avatar Quy
Quy - comment - 19 Sep 2018

@twister65 You can append the port to the Host eg. 192.192.192.192:15432

avatar twister65
twister65 - comment - 19 Sep 2018

I have tested this item successfully on 2111f2f

Tested successfully with port 5466 and postgresql driver (as well as the already implemented port with pgsql PDO driver).


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19466.

avatar twister65
twister65 - comment - 19 Sep 2018

I have tested this item successfully on 2111f2f

Tested successfully with port 5466 and postgresql driver (as well as the already implemented port with pgsql PDO driver).


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19466.

avatar twister65 twister65 - test_item - 19 Sep 2018 - Tested successfully
avatar Quy Quy - change - 19 Sep 2018
Status Pending Ready to Commit
avatar Quy
Quy - comment - 19 Sep 2018

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19466.

avatar mbabker mbabker - change - 22 Sep 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-09-22 15:15:03
Closed_By mbabker
Labels Added: ?
avatar mbabker mbabker - close - 22 Sep 2018
avatar mbabker mbabker - merge - 22 Sep 2018

Add a Comment

Login with GitHub to post a comment