We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa2bb05 commit 5f2959dCopy full SHA for 5f2959d
1 file changed
source/dbconnection.pas
@@ -10845,8 +10845,8 @@ function TTableColumn.CastAsText: String;
10845
Result := 'CAST('+Result+' AS NVARCHAR('+IntToStr(GRIDMAXDATA)+'))';
10846
end;
10847
ngPgSQL: begin
10848
- if (DataType.Index in [dbdtUnknown, dbdtJson]) or (DataType.Category = dtcBinary) then
10849
- Result := Result + '::text';
+ // Cast *any* datatype, including VARCHAR and TEXT, which may have an [] array attribute
+ Result := Result + '::text';
10850
10851
10852
0 commit comments