You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2021/01/31 16:13:00 UTC
[incubator-doris] branch master updated: [ODBC] Fix Memory
consumption of ODBC MySQL Driver (#5322) (#5323)
This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
The following commit(s) were added to refs/heads/master by this push:
new ddd85d8 [ODBC] Fix Memory consumption of ODBC MySQL Driver (#5322) (#5323)
ddd85d8 is described below
commit ddd85d8ae846c1ccd75502ba93b89f95afe6e42d
Author: HappenLee <ha...@hotmail.com>
AuthorDate: Mon Feb 1 00:12:49 2021 +0800
[ODBC] Fix Memory consumption of ODBC MySQL Driver (#5322) (#5323)
---
.../src/main/java/org/apache/doris/catalog/OdbcTable.java | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/OdbcTable.java b/fe/fe-core/src/main/java/org/apache/doris/catalog/OdbcTable.java
index 398ff6b..d937008 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/catalog/OdbcTable.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/OdbcTable.java
@@ -274,7 +274,6 @@ public class OdbcTable extends Table {
"utf8");
break;
case POSTGRESQL:
- case MYSQL:
connectString = String.format("Driver=%s;Server=%s;Port=%s;DataBase=%s;Uid=%s;Pwd=%s;charset=%s",
getOdbcDriver(),
getHost(),
@@ -283,6 +282,15 @@ public class OdbcTable extends Table {
getUserName(),
getPasswd(),
"utf8");
+ case MYSQL:
+ connectString = String.format("Driver=%s;Server=%s;Port=%s;DataBase=%s;Uid=%s;Pwd=%s;charset=%s;forward_cursor=1;no_cache=1",
+ getOdbcDriver(),
+ getHost(),
+ getPort(),
+ getOdbcDatabaseName(),
+ getUserName(),
+ getPasswd(),
+ "utf8");
break;
default:
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org