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 ...@@ -96,7 +96,7 @@ public class QueryViewer extends ContentPanel implements IDatabaseModificationOb
} }
ReportGeneratedCallback callback = ReportGeneratedCallback callback =
new ReportGeneratedCallback(viewContext.getCommonViewContext(), new ReportGeneratedCallback(viewContext.getCommonViewContext(),
createReportInformationProvider(queryIdOrNull, sqlQueryOrNull), createReportInformationProvider(sqlQueryOrNull),
createDisplayQueryResultsAction()); createDisplayQueryResultsAction());
if (queryIdOrNull != null) if (queryIdOrNull != null)
{ {
...@@ -119,8 +119,7 @@ public class QueryViewer extends ContentPanel implements IDatabaseModificationOb ...@@ -119,8 +119,7 @@ public class QueryViewer extends ContentPanel implements IDatabaseModificationOb
queryProvider.update(observedModifications); queryProvider.update(observedModifications);
} }
private IReportInformationProvider createReportInformationProvider(final Long queryIdOrNull, private IReportInformationProvider createReportInformationProvider(final String sqlQuery)
final String sqlQuery)
{ {
return new IReportInformationProvider() return new IReportInformationProvider()
{ {
...@@ -132,9 +131,9 @@ public class QueryViewer extends ContentPanel implements IDatabaseModificationOb ...@@ -132,9 +131,9 @@ public class QueryViewer extends ContentPanel implements IDatabaseModificationOb
public String getKey() public String getKey()
{ {
if (queryIdOrNull != null) if (sqlQuery == null)
{ {
return Long.toString(queryIdOrNull); return "null";
} }
return Integer.toString(sqlQuery.hashCode()); 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