[gnome-db] gda_value_get_binary() broken for postgres



With the postgres provider (in 1.2 and unstable 2.0),
gda_value_get_binary() returns an escaped string instead of the binary
data.

The code to unescape the string is commented-out in
providers/postgres/utils.c:gda_postgres_set_value(), because the
PQunescapeBytea() was introduced only in Postgres 7.3. Are you willing
to depend on postgres 7.3 (7.4 and 8.0 are shipped by current distro
versions), or should I copy the PQunescapeBytea() code (BSD-licensed)
into libgda?

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]