Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify a custom port is not always possible across classes #31

Closed
ozh opened this issue Aug 25, 2013 · 1 comment
Closed

Specify a custom port is not always possible across classes #31

ozh opened this issue Aug 25, 2013 · 1 comment

Comments

@ozh
Copy link
Contributor

ozh commented Aug 25, 2013

Hi

Currently there is no consistent way across classes to specify a port.

  • cubrid and postgresql constructor functions accept a port number as argument
  • other classes don't explicitly accept a port argument. In these, some DB engines (mysql, mssql) accept a "hostname:port" notation (eg "localhost:3306") but some others (mysqli, pdo, sqlsrv) need specific stuff
  • depending on the DB engine, you cannot simply use ezSQL at the moment if you use a non standard port

I'm willing to fix this inconsistency and to submit a pull request but I'm seeking for approval before I start coding :)

My idea would be to accept the "hostname:port" notation in all classes, to preserve the number and order of arguments in all constructors as they are now (and not to break any script that would update after you commit the PR)

Any thoughts?

@jv2222
Copy link
Contributor

jv2222 commented Aug 25, 2013

Yes please fix and submit a pull request thanks!

(Via iPhone)

On Aug 25, 2013, at 11:22 AM, ྅༻ Ǭɀħ ༄༆ཉ notifications@github.com wrote:

Hi

Currently there is no consistent way across classes to specify a port.

cubrid and postgresql constructor functions accept a port number as argument
other classes don't explicitly accept a port argument. In these, some DB engines (mysql, mssql) accept a "hostname:port" notation (eg "localhost:3306") but some others (mysqli, pdo, sqlsrv) need specific stuff
depending on the DB engine, you cannot simply use ezSQL at the moment if you use a non standard port
I'm willing to fix this inconsistency and to submit a pull request but I'm seeking for approval before I start coding :)

My idea would be to accept the "hostname:port" notation in all classes, to preserve the number and order of arguments in all constructors as they are now (and not to break any script that would update after you commit the PR)

Any thoughts?


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants