MCPcopy Create free account
hub / github.com/apache/arrow / SetAttributeUTF8

Function SetAttributeUTF8

cpp/src/arrow/flight/sql/odbc/odbc_impl/attribute_utils.h:148–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148inline void SetAttributeUTF8(SQLPOINTER new_value, SQLINTEGER input_length,
149 std::string& attribute_to_write) {
150 const char* new_value_as_char = static_cast<const char*>(new_value);
151 attribute_to_write.assign(new_value_as_char, input_length == SQL_NTS
152 ? strlen(new_value_as_char)
153 : input_length);
154}
155
156inline void SetAttributeSQLWCHAR(SQLPOINTER new_value, SQLINTEGER input_length_in_bytes,
157 std::string& attribute_to_write) {

Callers 2

SetFieldMethod · 0.85
SetConnectAttrMethod · 0.85

Calls 1

assignMethod · 0.80

Tested by

no test coverage detected