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 62caaf9 commit 369354dCopy full SHA for 369354d
1 file changed
source/dbconnection.pas
@@ -10958,8 +10958,8 @@ function TTableColumn.CastAsText: String;
10958
Result := 'CAST('+Result+' AS NVARCHAR('+IntToStr(GRIDMAXDATA)+'))';
10959
end;
10960
ngPgSQL: begin
10961
- if (DataType.Index in [dbdtUnknown, dbdtJson]) or (DataType.Category = dtcBinary) then
10962
- Result := Result + '::text';
+ // Cast *any* datatype, including VARCHAR and TEXT, which may have an [] array attribute
+ Result := Result + '::text';
10963
10964
10965
0 commit comments