Skip to content
Permalink
Browse files

popupDataGridPopup is also used in query tab result grids, so here's …

…a check for which grid is active. Closes #776
  • Loading branch information...
ansgarbecker committed Oct 22, 2019
1 parent 46de6a2 commit 56015215555872af20f77f59e03ab82b4bb610c8
Showing with 2 additions and 1 deletion.
  1. +2 −1 source/main.pas
@@ -6861,7 +6861,8 @@ procedure TMainForm.popupDataGridPopup(Sender: TObject);
Results := GridResult(Grid);

Col := ActiveConnection.QuoteIdent(Results.ColumnOrgNames[Grid.FocusedColumn], False);
if (SelectedTableColumns[Grid.FocusedColumn].DataType.Index = dtJson)
if InDataGrid
and (SelectedTableColumns[Grid.FocusedColumn].DataType.Index = dtJson)
and (ActiveConnection.Parameters.NetTypeGroup = ngPgSQL) then begin
Col := Col + '::text';
end;

0 comments on commit 5601521

Please sign in to comment.
You can’t perform that action at this time.