Skip to content
Snippets Groups Projects
Commit a335c02a authored by felmer's avatar felmer
Browse files

revert previous change

SVN: 15531
parent 1cf08e80
No related branches found
No related tags found
No related merge requests found
......@@ -96,7 +96,7 @@ public class QueryViewer extends ContentPanel implements IDatabaseModificationOb
}
ReportGeneratedCallback callback =
new ReportGeneratedCallback(viewContext.getCommonViewContext(),
createReportInformationProvider(queryIdOrNull, sqlQueryOrNull),
createReportInformationProvider(sqlQueryOrNull),
createDisplayQueryResultsAction());
if (queryIdOrNull != null)
{
......@@ -119,8 +119,7 @@ public class QueryViewer extends ContentPanel implements IDatabaseModificationOb
queryProvider.update(observedModifications);
}
private IReportInformationProvider createReportInformationProvider(final Long queryIdOrNull,
final String sqlQuery)
private IReportInformationProvider createReportInformationProvider(final String sqlQuery)
{
return new IReportInformationProvider()
{
......@@ -132,9 +131,9 @@ public class QueryViewer extends ContentPanel implements IDatabaseModificationOb
public String getKey()
{
if (queryIdOrNull != null)
if (sqlQuery == null)
{
return Long.toString(queryIdOrNull);
return "null";
}
return Integer.toString(sqlQuery.hashCode());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment