This is an automated email from the ASF dual-hosted git repository.
jackie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pinot.git
The following commit(s) were added to refs/heads/master by this push:
new 0b111a1310 Fix JDBC driver check for username (#10416)
0b111a1310 is described below
commit 0b111a13100c44909a55df681ff48a5319261875
Author: omida-bitquill <[email protected]>
AuthorDate: Tue Mar 14 15:17:00 2023 -0700
Fix JDBC driver check for username (#10416)
---
.../src/main/java/org/apache/pinot/client/utils/DriverUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/pinot-clients/pinot-jdbc-client/src/main/java/org/apache/pinot/client/utils/DriverUtils.java
b/pinot-clients/pinot-jdbc-client/src/main/java/org/apache/pinot/client/utils/DriverUtils.java
index c914f959ac..75bd6acc28 100644
---
a/pinot-clients/pinot-jdbc-client/src/main/java/org/apache/pinot/client/utils/DriverUtils.java
+++
b/pinot-clients/pinot-jdbc-client/src/main/java/org/apache/pinot/client/utils/DriverUtils.java
@@ -71,7 +71,7 @@ public class DriverUtils {
public static void handleAuth(Properties info, Map<String, String> headers)
throws SQLException {
- if (info.contains(USER_PROPERTY) && !headers.containsKey(AUTH_HEADER)) {
+ if (info.containsKey(USER_PROPERTY) && !headers.containsKey(AUTH_HEADER)) {
String username = info.getProperty(USER_PROPERTY);
String password = info.getProperty(PASSWORD_PROPERTY, "");
if (StringUtils.isAnyEmpty(username, password)) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]