We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90e371d commit 3ec5e77Copy full SHA for 3ec5e77
src/jrd/trace/TraceDSQLHelpers.h
@@ -51,13 +51,14 @@ class TraceDSQLPrepare
51
if (!m_need_trace)
52
return;
53
54
- m_start_clock = fb_utils::query_performance_counter();
+ m_start_clock = fb_utils::query_performance_counter();std::string_view
55
56
- static const char empty_string[] = "";
57
- if (!m_string_len || !string)
+ static constexpr const char* empty_string = "<empty statement>";
+ static FB_SIZE_T empty_string_length = fb_strlen(empty_string);
58
+ if (m_string == nullptr || (m_string_len == 0 && (m_string_len = fb_strlen(m_string)) == 0))
59
{
60
m_string = empty_string;
- m_string_len = 0;
61
+ m_string_len = empty_string_length;
62
}
63
64
0 commit comments