Ashutosh Bapat <ashutosh.bapat....@gmail.com> writes: > I am wondering whether we should provide PQgetfloatvalue() which does > what that example shows but transparently. It will return a float > value of the given field instead of char *.
I'm against that, precisely because ... > That will standardize the > way to fetch real typed values in libpq. That leads to the next > question. Do we need to introduce different PQget*value() for standard > C/SQL data types. ... I do not want to go here. Where would you stop? How would you deal with cross-machine inconsistencies in integer widths? regards, tom lane