| 146 | } |
| 147 | |
| 148 | inline 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 | |
| 156 | inline void SetAttributeSQLWCHAR(SQLPOINTER new_value, SQLINTEGER input_length_in_bytes, |
| 157 | std::string& attribute_to_write) { |
no test coverage detected