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 42a061d commit bcea889Copy full SHA for bcea889
1 file changed
source/dbconnection.pas
@@ -10845,8 +10845,9 @@ function TTableColumn.CastAsText: String;
10845
Result := 'CAST('+Result+' AS NVARCHAR('+IntToStr(GRIDMAXDATA)+'))';
10846
end;
10847
ngPgSQL: begin
10848
- // Cast *any* datatype, including VARCHAR and TEXT, which may have an [] array attribute
10849
- Result := Result + '::text';
+ // Cast most datatypes, including VARCHAR and TEXT, which may have an [] array attribute
+ if not (DataType.Category in [dtcInteger, dtcReal]) then
10850
+ Result := Result + '::text';
10851
10852
10853
0 commit comments