This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch branch-1.2-lts
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-1.2-lts by this push:
     new 6345998256 [fix](jdbc catalog) fix string type insert into jdbc table 
(#22957)
6345998256 is described below

commit 6345998256fa2aea86447c656a8bf0b1597d194a
Author: zy-kkk <[email protected]>
AuthorDate: Mon Aug 14 23:07:34 2023 +0800

    [fix](jdbc catalog) fix string type insert into jdbc table (#22957)
---
 be/src/exec/table_connector.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/be/src/exec/table_connector.cpp b/be/src/exec/table_connector.cpp
index 15047d9846..2ff9d71de1 100644
--- a/be/src/exec/table_connector.cpp
+++ b/be/src/exec/table_connector.cpp
@@ -421,7 +421,8 @@ Status TableConnector::convert_column_data(const 
vectorized::ColumnPtr& column_p
         // TODO(zhangstar333): check array data type of postgresql
         // for oracle/pg database string must be '
         if (table_type == TOdbcTableType::ORACLE || table_type == 
TOdbcTableType::POSTGRESQL ||
-            table_type == TOdbcTableType::SAP_HANA) {
+            table_type == TOdbcTableType::SAP_HANA || table_type == 
TOdbcTableType::MYSQL ||
+            table_type == TOdbcTableType::CLICKHOUSE) {
             fmt::format_to(_insert_stmt_buffer, "'{}'", 
fmt::basic_string_view(item, size));
         } else {
             fmt::format_to(_insert_stmt_buffer, "\"{}\"", 
fmt::basic_string_view(item, size));


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to