| 32 | |
| 33 | template <typename T, typename O> |
| 34 | inline void GetAttribute(T attribute_value, SQLPOINTER output, O output_size, |
| 35 | O* output_len_ptr) { |
| 36 | if (output) { |
| 37 | T* typed_output = reinterpret_cast<T*>(output); |
| 38 | *typed_output = attribute_value; |
| 39 | } |
| 40 | |
| 41 | if (output_len_ptr) { |
| 42 | *output_len_ptr = sizeof(T); |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | template <typename O> |
| 47 | inline SQLRETURN GetAttributeUTF8(std::string_view attribute_value, SQLPOINTER output, |
no outgoing calls
no test coverage detected