Cannot map an error code returned from unixodbc using PostgreSQL database -


i using postgresql using unixodbc driver, , while trying connection, error. printing value of pfnativeerror of sqlerror, , value of '26'.

i have gone through error codes returned postgresql, listed here: http://www.postgresql.org/docs/8.1/static/errcodes-appendix.html#errcodes-table

i wanted know if unixodbc returns in pfnativeerror last 3 characters of error codes mentioned in link above? if true, assume possibility following error code:

22026 string data length mismatch string_data_length_mismatch

do let me know if thinking in right direction. also, issue i've noticed when postgresql has millions of rows, , query results in connection failure trying fetch lot of data (10ks). can give idea why problem might happening?

edit 1:

if of help, i'm getting following values szerrormsg:

  • error while executing query
  • could not send query(connection dead)

edit 2:

'26' returned in integer, , codes mentioned in link above in hex. 26 in decimal corresponds 1a in hex. unfortunately, not correspond thing in above mentioned documentation. out of ideas! can tell me different pfnativeerror codes correspond to?


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -