Finally! StarQuery reports dollar signs on decimal fields.
commit1a1655e138726a592990fea96d0c6f54463d065e
authorAvery Pennarun <apenwarr@gmail.com>
Fri, 21 Nov 2008 09:39:23 +0000 (21 04:39 -0500)
committerAvery Pennarun <apenwarr@gmail.com>
Fri, 21 Nov 2008 09:39:23 +0000 (21 04:39 -0500)
tree1a844f1a73f751f488a96233dcefefef74a3c342
parent31fe2b16a96d31b51b5a8195cc0d360052554bcc
Finally!  StarQuery reports dollar signs on decimal fields.

This required setting all fields of type Decimal to have pgtype_money=true,
as well as precisely setting the column size/decimal digits to 19 and 4,
respectively.  In other words, it's kind of hacky.  But at least it's
basically working.

To make it less hacky, we'd have to get (and keep) the
size/precision/moneyness data from the remote end somehow, which I leave as
an exercise to the reader.  (It can't very very hard, since the we're
talking to the MSSQL ODBC driver, which clearly provides that information.)
vxodbc/pgtypes.cc
vxodbc/results.cc