You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by pe...@apache.org on 2022/03/10 01:33:14 UTC
[incubator-linkis] branch dev-1.1.0-datasource updated: fix the value is displayed as the object address when the JDBC engine queries complex type fields. (#1646)
This is an automated email from the ASF dual-hosted git repository.
peacewong pushed a commit to branch dev-1.1.0-datasource
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git
The following commit(s) were added to refs/heads/dev-1.1.0-datasource by this push:
new 9c58649 fix the value is displayed as the object address when the JDBC engine queries complex type fields. (#1646)
9c58649 is described below
commit 9c5864906d6f0c6d8c871b5b6dd023e0c1a11eac
Author: weixiao <le...@gmail.com>
AuthorDate: Thu Mar 10 09:33:09 2022 +0800
fix the value is displayed as the object address when the JDBC engine queries complex type fields. (#1646)
Co-authored-by: leo_jie <we...@aliyun.com>
---
.../manager/engineplugin/jdbc/executer/JDBCEngineConnExecutor.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/linkis-engineconn-plugins/engineconn-plugins/jdbc/src/main/scala/org/apache/linkis/manager/engineplugin/jdbc/executer/JDBCEngineConnExecutor.scala b/linkis-engineconn-plugins/engineconn-plugins/jdbc/src/main/scala/org/apache/linkis/manager/engineplugin/jdbc/executer/JDBCEngineConnExecutor.scala
index 9954f9d..a6a7620 100644
--- a/linkis-engineconn-plugins/engineconn-plugins/jdbc/src/main/scala/org/apache/linkis/manager/engineplugin/jdbc/executer/JDBCEngineConnExecutor.scala
+++ b/linkis-engineconn-plugins/engineconn-plugins/jdbc/src/main/scala/org/apache/linkis/manager/engineplugin/jdbc/executer/JDBCEngineConnExecutor.scala
@@ -108,7 +108,7 @@ class JDBCEngineConnExecutor(override val outputPrintLimit: Int, val id: Int) ex
while (count < outputPrintLimit && JDBCResultSet.next()) {
val r: Array[Any] = columns.indices.map { i =>
val data = JDBCResultSet.getObject(i + 1) match {
- case value: Any => value.toString
+ case value: Any => JDBCResultSet.getString(i + 1)
case _ => null
}
data
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org