This is an automated email from the ASF dual-hosted git repository.
zykkk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 61d2f37bdc [fix](jdbc catalog) fix string type insert into odbc table
(#22961)
61d2f37bdc is described below
commit 61d2f37bdc7f9ac03f6b0213ac5b395ef3f6b794
Author: zy-kkk <[email protected]>
AuthorDate: Tue Aug 15 20:09:38 2023 +0800
[fix](jdbc catalog) fix string type insert into odbc table (#22961)
---
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 9eb1fface1..0f12b9028a 100644
--- a/be/src/exec/table_connector.cpp
+++ b/be/src/exec/table_connector.cpp
@@ -251,7 +251,8 @@ Status TableConnector::convert_column_data(const
vectorized::ColumnPtr& column_p
case TYPE_STRING: {
// 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]