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 030df6db35 [fix](odbc) fix odbc insert string data to sqlserve (#23364)
030df6db35 is described below

commit 030df6db35ffad95ada0c8d1014fa1c77374a5b5
Author: zy-kkk <[email protected]>
AuthorDate: Tue Aug 29 21:47:50 2023 +0800

    [fix](odbc) fix odbc insert string data to sqlserve (#23364)
---
 be/src/exec/table_connector.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/exec/table_connector.cpp b/be/src/exec/table_connector.cpp
index 94c7d889be..7aa90eda08 100644
--- a/be/src/exec/table_connector.cpp
+++ b/be/src/exec/table_connector.cpp
@@ -205,7 +205,7 @@ Status TableConnector::convert_column_data(const 
vectorized::ColumnPtr& column_p
         // for oracle/pg database string must be '
         if (table_type == TOdbcTableType::ORACLE || table_type == 
TOdbcTableType::POSTGRESQL ||
             table_type == TOdbcTableType::SAP_HANA || table_type == 
TOdbcTableType::MYSQL ||
-            table_type == TOdbcTableType::CLICKHOUSE) {
+            table_type == TOdbcTableType::CLICKHOUSE || table_type == 
TOdbcTableType::SQLSERVER) {
             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