[fix](odbc) fix odbc insert string data to sqlserve (#23364)
This commit is contained in:
@ -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));
|
||||
|
||||
Reference in New Issue
Block a user