[
https://issues.apache.org/jira/browse/TRAFODION-1652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15326908#comment-15326908
]
ASF GitHub Bot commented on TRAFODION-1652:
-------------------------------------------
GitHub user xwq opened a pull request:
https://github.com/apache/incubator-trafodion/pull/543
[TRAFODION-1652]SQLDriverConnect can't get catalog name
windows ODBC return a default catalog name in the output connection string
if input connection string doesn't give a catalog name.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/xwq/incubator-trafodion odbc_catalog
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-trafodion/pull/543.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #543
----
commit ec2f71b37a00ef7a578d15be80f100eeecfdab78
Author: Weiqing Xu <[email protected]>
Date: 2016-06-13T06:57:05Z
[TRAFODION-1652]SQLDriverConnect can't get catalog name
windows ODBC return a default catalog name in the output connection string
if input connection string doesn't give a catalog name.
----
> SQLDriverConnect can't get catalog name
> ---------------------------------------
>
> Key: TRAFODION-1652
> URL: https://issues.apache.org/jira/browse/TRAFODION-1652
> Project: Apache Trafodion
> Issue Type: Bug
> Components: client-odbc-windows
> Affects Versions: 2.0-incubating, 1.3-incubating
> Environment: windows7 windows8
> Reporter: Gao, Rui-Xian
> Assignee: Weiqing Xu
>
> SQLDriverConnect returned empty catalog name
> returncode =
> SQLDriverConnect(hdbc,NULL,(SQLCHAR*)ConnectStringIn,sizeof(ConnectStringIn),
>
> (SQLCHAR*)ConnectStringOut,sizeof(ConnectStringOut),&ConnStrLengthOut,
> SQL_DRIVER_NOPROMPT);
> LogMsg(SHORTTIMESTAMP + LINEAFTER, "ConnectStringOut is :%s\n",
> ConnectStringOut);
> output --
> ConnectStringOut is
> :DSN=TRAF_DSN145_W7;SERVER=TCP:10.10.10.145/23400;UID=trafodion;PWD=traf123;CATALOG=;SCHEMA=RACHEL_ODBCTEST_W7;
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)