I do not know if I am incurring in an error, but I do see an incorrect declaration of the NUMERIC data type in function BDETOPSQLStr(Field : TFieldDef): String
When the DataType of the Field is ftBcd, if I have a Size ( digits after decimal point of 4 ) and a Precision of 15, the BDETOPSQLStr declares the field as : NUMERIC(4,15)
Hello,
I do not know if I am incurring in an error, but I do see an incorrect declaration of the NUMERIC data type in function BDETOPSQLStr(Field : TFieldDef): String
When the DataType of the Field is ftBcd, if I have a Size ( digits after decimal point of 4 ) and a Precision of 15, the BDETOPSQLStr declares the field as : NUMERIC(4,15)
If I go to https://www.postgresql.org/docs/current/datatype-numeric.html I can see an example of NUMERIC( precision, scale ):
But BDETOPSQLStr returns : NUMERIC(4,15) instead of NUMERIC(15, 4)
If you see in Delphi help : https://docwiki.embarcadero.com/Libraries/Sydney/en/Data.DB.TBCDField.Size
It says that the size in a TBcdField is :
So there is an incongruency in the definition
Thank you