You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Francis Chuang (Jira)" <ji...@apache.org> on 2023/06/06 00:28:00 UTC
[jira] [Resolved] (CALCITE-5753) User and pwd not being propagated to JDBC context from go driver
[ https://issues.apache.org/jira/browse/CALCITE-5753?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Francis Chuang resolved CALCITE-5753.
-------------------------------------
Fix Version/s: avatica-go-5.3.0
Resolution: Fixed
> User and pwd not being propagated to JDBC context from go driver
> ----------------------------------------------------------------
>
> Key: CALCITE-5753
> URL: https://issues.apache.org/jira/browse/CALCITE-5753
> Project: Calcite
> Issue Type: Bug
> Components: avatica-go
> Affects Versions: 1.34.0
> Reporter: Parag Jain
> Assignee: Francis Chuang
> Priority: Major
> Fix For: avatica-go-5.3.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Username and pwd not being propagated in the JDBC context. Had to add the following code in the [Connect|https://github.com/apache/calcite-avatica-go/blob/main/driver.go#L64] method of driver.go to make it work
> {code:java}
> if config.avaticaUser != "" {
> c.Info["user"] = config.avaticaUser
> }
> if config.avaticaPassword != "" {
> c.Info["password"] = config.avaticaPassword
> } {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)