8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 00:03:02 +01:00

static not works here

This commit is contained in:
hvlad 2009-02-03 08:45:57 +00:00
parent 424f747cdb
commit b0e129a52f

View File

@ -1107,7 +1107,7 @@ void DatabaseSnapshot::putRequest(const jrd_req* request, ClumpletWriter& writer
writer.insertTimeStamp(f_mon_stmt_timestamp, empty); writer.insertTimeStamp(f_mon_stmt_timestamp, empty);
} }
// sql text // sql text
const static string emptyString; const string emptyString;
const string &sql = request->req_sql_text ? (*request->req_sql_text) : emptyString; const string &sql = request->req_sql_text ? (*request->req_sql_text) : emptyString;
writer.insertString(f_mon_stmt_sql_text, sql); writer.insertString(f_mon_stmt_sql_text, sql);
// statistics // statistics