File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 3131#include " ../../jrd/trace/TraceManager.h"
3232#include " ../../jrd/trace/TraceObjects.h"
3333
34+ #include < string_view>
35+
3436namespace Jrd {
3537
3638using Firebird::ITracePlugin;
@@ -53,14 +55,12 @@ class TraceDSQLPrepare
5355
5456 m_start_clock = fb_utils::query_performance_counter ();
5557
56- static const char empty_string[] = " " ;
57- if (!string )
58+ static constexpr std::string_view empty_string = " <empty statement> " ;
59+ if (m_string == nullptr || (m_string_len == 0 && (m_string_len = fb_strlen (m_string)) == 0 ) )
5860 {
59- m_string = empty_string;
60- m_string_len = 0 ;
61+ m_string = empty_string. data () ;
62+ m_string_len = empty_string. length () ;
6163 }
62- else if (m_string_len == 0 )
63- m_string_len = fb_strlen (m_string);
6464 }
6565
6666 ~TraceDSQLPrepare ()
You can’t perform that action at this time.
0 commit comments