-
Notifications
You must be signed in to change notification settings - Fork 26
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
fix: wrong field in odbc conf for db connection #115
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When did this change? Is it different between MySQL and MariaDB entries? I'm seeing both online in documentation, and on the official MySQL site it is "Server"
The unixODBC 2.3.12 man page for odbc.ini does show The Postgresql driver on the other hand, oinly accepts So, it does seem that |
Oh, for both drivers, if both @gibix You might want to add a note to that effect on those pages. |
Can you cite your source on this? |
This is really minor but I would love to see some documentation that |
odbc.ini:
# isql asterisk-pgsql
+---------------------------------------+
| Connected! |
| |
| sql-statement |
| help [tablename] |
| echo [string] |
| quit |
| |
+---------------------------------------+
SQL>
# netstat -anxp | grep '[.]5432'
unix 2 [ ACC ] STREAM LISTENING 13184 2812/postgres /tmp/.s.PGSQL.5432
unix 3 [ ] STREAM CONNECTED 46871406 1788870/postgres: a /var/run/postgresql/.s.PGSQL.5432
unix 2 [ ACC ] STREAM LISTENING 13183 2812/postgres /var/run/postgresql/.s.PGSQL.5432
# isql asterisk-pgsql
[ISQL]ERROR: Could not SQLConnect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This documentation is referring to MySQL ODBC based configuration, so like @seanbright I would like to see documentation from elsewhere stating that "Server" is invalid for this, or further information on what triggered this change in the first place.
Hello, thanks for the review. I can confirm that I spotted the bug while trying to connect odbc with postgres on a remote server. I add a note for server |
@@ -173,7 +173,10 @@ Socket = /var/run/mysqld/mysqld.sock | |||
|
|||
``` | |||
|
|||
Take care to use your database access UserName and Password, and not necessarily what's defined in this example. | |||
Keep in mind that the `Servername` parameter should not be confused with `Server` that is invalid. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But this isn't true. These examples are for MySQL, where it IS valid. It MAY be invalid for other databases. I think the documentation should be updated to state that different drivers may support different options, and so the MySQL based ones may not be applicable to others.
The current "Server" field is invalid and cannot be used to configure remote database server