I am going to confirm with development but I think
COL_SCALE is actually defined in Virtuoso and probably stored the
scale of a column, which it seems the PostgreSQL ODBC driver you are using is returning as these enormous integer values, i.e.,
139715286138880, etc., which as indicate do not “fit”, i.e., are too large for a scale value.
Could this be an issue in the PostgreSQL ODBC driver itself or with building the PostgreSQL ODBC Driver with iODBC?
As suggested previously, I would recommend using the OpenLink UDA PostgreSQL ODBC Driver, which has been tested with Virtuoso, and is available for free evaluation …