| 249 | } |
| 250 | |
| 251 | const char* TraceSQLStatementImpl::getTextUTF8() |
| 252 | { |
| 253 | const string* stmtText = m_stmt->getDsqlStatement()->getSqlText(); |
| 254 | |
| 255 | if (m_textUTF8.isEmpty() && stmtText && !stmtText->isEmpty()) |
| 256 | { |
| 257 | if (!DataTypeUtil::convertToUTF8(*stmtText, m_textUTF8, CS_dynamic, status_exception::raise)) |
| 258 | return stmtText->c_str(); |
| 259 | } |
| 260 | |
| 261 | return m_textUTF8.c_str(); |
| 262 | } |
| 263 | |
| 264 | PerformanceInfo* TraceSQLStatementImpl::getPerf() |
| 265 | { |
no test coverage detected