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 c94b860 commit 04a9492Copy full SHA for 04a9492
1 file changed
source/dbconnection.pas
@@ -10968,8 +10968,9 @@ function TTableColumn.CastAsText: String;
10968
Result := 'CAST('+Result+' AS NVARCHAR('+IntToStr(GRIDMAXDATA)+'))';
10969
end;
10970
ngPgSQL: begin
10971
- // Cast *any* datatype, including VARCHAR and TEXT, which may have an [] array attribute
10972
- Result := Result + '::text';
+ // Cast most datatypes, including VARCHAR and TEXT, which may have an [] array attribute
+ if not (DataType.Category in [dtcInteger, dtcReal]) then
10973
+ Result := Result + '::text';
10974
10975
10976
0 commit comments