[fix](odbc) fix odbc insert string data to sqlserve (#23364)

This commit is contained in:
zy-kkk
2023-08-29 21:47:50 +08:00
committed by GitHub
parent e02747e976
commit 030df6db35

View File

@ -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));