Global Options: Version='07.03.0201', fetch=100, socket=4096, unknown_sizes=0, max_varchar_size=254, max_longvarchar_size=65536
                disable_optimizer=1, ksqo=1, unique_index=1, use_declarefetch=0
                text_as_longvarchar=0, unknowns_as_longvarchar=1, bools_as_char=0 NAMEDATALEN=64
                extra_systable_prefixes='dd_', conn_settings='' conn_encoding='LATIN1'
conn=39088976, query=' '
conn=39088976, query='select version()'
    [ fetched 1 rows ]
    [ PostgreSQL version string = 'PostgreSQL 7.3.1 on i686-pc-linux-gnu, compiled by GCC 2.96' ]
    [ PostgreSQL version number = '7.3' ]
conn=39088976, query='set DateStyle to 'ISO''
conn=39088976, query='set geqo to 'OFF''
conn=39088976, query='SET CLIENT_ENCODING TO 'LATIN1''
conn=39088976, query='select oid from pg_type where typname='lo''
    [ fetched 1 rows ]
    [ Large Object oid = 549097 ]
conn=39088976, query='select pg_client_encoding()'
    [ fetched 1 rows ]
    [ Client encoding = 'LATIN1' (code = 8) ]
conn=39088976, PGAPI_DriverConnect(out)='DRIVER={PostgreSQL};DATABASE=xwhale-dev;SERVER=fs1200.farcourier.com;PORT=5432;UID=jean;PWD=xxxx;ReadOnly=0;Protocol=6.4;FakeOidIndex=0;ShowOidColumn=0;RowVersioning=0;ShowSystemTables=0;ConnSettings=SET+CLIENT%5fENCODING+TO+%27LATIN1%27;Fetch=100;Socket=4096;UnknownSizes=0;MaxVarcharSize=254;MaxLongVarcharSize=65536;Debug=1;CommLog=1;Optimizer=1;Ksqo=1;UseDeclareFetch=0;TextAsLongVarchar=0;UnknownsAsLongVarchar=1;BoolsAsChar=0;Parse=0;CancelAsFreeStmt=0;ExtraSysTablePrefixes=dd_;LFConversion=1;UpdatableCursors=1;DisallowPremature=0;TrueIsMinus1=1;BI=0;ByteaAsLongVarBinary=0;UseServerSidePrepare=0'
conn=39108184, PGAPI_DriverConnect( in)='DRIVER={PostgreSQL};UID=jean;PWD=xxxx;DATABASE=xwhale-dev;SERVER=fs1200.farcourier.com;PORT=5432;ReadOnly=0;Protocol=6.4;FakeOidIndex=0;ShowOidColumn=0;RowVersioning=0;ShowSystemTables=0;ConnSettings=SET+CLIENT%5fENCODING+TO+%27LATIN1%27;Fetch=100;Socket=4096;UnknownSizes=0;MaxVarcharSize=254;MaxLongVarcharSize=65536;Debug=1;CommLog=1;Optimizer=1;Ksqo=1;UseDeclareFetch=0;TextAsLongVarchar=0;UnknownsAsLongVarchar=1;BoolsAsChar=0;Parse=0;CancelAsFreeStmt=0;ExtraSysTablePrefixes=dd_;LFConversion=1;UpdatableCursors=1;DisallowPremature=0;TrueIsMinus1=1;BI=0;ByteaAsLongVarBinary=0;UseServerSidePrepare=0;', fDriverCompletion=0
Global Options: Version='07.03.0201', fetch=100, socket=4096, unknown_sizes=0, max_varchar_size=254, max_longvarchar_size=65536
                disable_optimizer=1, ksqo=1, unique_index=1, use_declarefetch=0
                text_as_longvarchar=0, unknowns_as_longvarchar=1, bools_as_char=0 NAMEDATALEN=64
                extra_systable_prefixes='dd_', conn_settings='' conn_encoding='LATIN1'
conn=39108184, query=' '
conn=39108184, query='select version()'
    [ fetched 1 rows ]
    [ PostgreSQL version string = 'PostgreSQL 7.3.1 on i686-pc-linux-gnu, compiled by GCC 2.96' ]
    [ PostgreSQL version number = '7.3' ]
conn=39108184, query='set DateStyle to 'ISO''
conn=39108184, query='set geqo to 'OFF''
conn=39108184, query='SET CLIENT_ENCODING TO 'LATIN1''
conn=39108184, query='select oid from pg_type where typname='lo''
    [ fetched 1 rows ]
    [ Large Object oid = 549097 ]
conn=39108184, query='select pg_client_encoding()'
    [ fetched 1 rows ]
    [ Client encoding = 'LATIN1' (code = 8) ]
=== CUT ===

conn=39108184, query='select item.awbnumber, item.contenttype_id, item.other_contenttype, item.deliveryaddress_id, item.deliveryaddressname, item.detail_id, item.handling_id, item.height, item.item_id, item.itemnumber, item.itemtype_id, item.other_itemtype, item.lastchanged, item.length, item.order_id, item.realdeliverydate, item.realdeliverytime, item.servicetype_id, item.signaturetype_id, item.signedby, item.staff_id, item.value, item.weight, item.width, COALESCE(contenttypecontenttype.description , item.other_contenttype) as contenttype_description, handlinghandling.description as handling_description, COALESCE(itemtypeitemtype.description , item.other_itemtype) as itemtype_description, servicetypeservicetype.description as servicetype_description, signaturetypesignaturetype.description as signaturetype_description from item
 left join contenttype as contenttypecontenttype on (item.contenttype_id = contenttypecontenttype.contenttype_id)  
 left join handling as handlinghandling on (item.handling_id = handlinghandling.handling_id)  
 left join itemtype as itemtypeitemtype on (item.itemtype_id = itemtypeitemtype.itemtype_id)  
 left join servicetype as servicetypeservicetype on (item.servicetype_id = servicetypeservicetype.servicetype_id)  
 left join signaturetype as signaturetypesignaturetype on (item.signaturetype_id = signaturetypesignaturetype.signaturetype_id)   where  item.order_id=827;'
    [ fetched 1 rows ]
STATEMENT ERROR: func=PGAPI_GetData, desc='', errnum=14, errmsg='Received an unsupported type from Postgres.'
                 ------------------------------------------------------------
                 hdbc=39108184, stmt=39456208, result=39464608
                 manual_result=0, prepare=0, internal=0
                 bindings=39452704, bindings_allocated=29
                 parameters=0, parameters_allocated=0
                 statement_type=0, statement='select item.awbnumber, item.contenttype_id, item.other_contenttype, item.deliveryaddress_id, item.deliveryaddressname, item.detail_id, item.handling_id, item.height, item.item_id, item.itemnumber, item.itemtype_id, item.other_itemtype, item.lastchanged, item.length, item.order_id, item.realdeliverydate, item.realdeliverytime, item.servicetype_id, item.signaturetype_id, item.signedby, item.staff_id, item.value, item.weight, item.width, COALESCE(contenttypecontenttype.description , item.other_contenttype) as contenttype_description, handlinghandling.description as handling_description, COALESCE(itemtypeitemtype.description , item.other_itemtype) as itemtype_description, servicetypeservicetype.description as servicetype_description, signaturetypesignaturetype.description as signaturetype_description from item
 left join contenttype as contenttypecontenttype on (item.contenttype_id = contenttypecontenttype.contenttype_id)  
 left join handling as handlinghandling on (item.handling_id = handlinghandling.handling_id)  
 left join itemtype as itemtypeitemtype on (item.itemtype_id = itemtypeitemtype.itemtype_id)  
 left join servicetype as servicetypeservicetype on (item.servicetype_id = servicetypeservicetype.servicetype_id)  
 left join signaturetype as signaturetypesignaturetype on (item.signaturetype_id = signaturetypesignaturetype.signaturetype_id)   where  item.order_id=827;'
                 stmt_with_params='select item.awbnumber, item.contenttype_id, item.other_contenttype, item.deliveryaddress_id, item.deliveryaddressname, item.detail_id, item.handling_id, item.height, item.item_id, item.itemnumber, item.itemtype_id, item.other_itemtype, item.lastchanged, item.length, item.order_id, item.realdeliverydate, item.realdeliverytime, item.servicetype_id, item.signaturetype_id, item.signedby, item.staff_id, item.value, item.weight, item.width, COALESCE(contenttypecontenttype.description , item.other_contenttype) as contenttype_description, handlinghandling.description as handling_description, COALESCE(itemtypeitemtype.description , item.other_itemtype) as itemtype_description, servicetypeservicetype.description as servicetype_description, signaturetypesignaturetype.description as signaturetype_description from item
 left join contenttype as contenttypecontenttype on (item.contenttype_id = contenttypecontenttype.contenttype_id)  
 left join handling as handlinghandling on (item.handling_id = handlinghandling.handling_id)  
 left join itemtype as itemtypeitemtype on (item.itemtype_id = itemtypeitemtype.itemtype_id)  
 left join servicetype as servicetypeservicetype on (item.servicetype_id = servicetypeservicetype.servicetype_id)  
 left join signaturetype as signaturetypesignaturetype on (item.signaturetype_id = signaturetypesignaturetype.signaturetype_id)   where  item.order_id=827;'
                 data_at_exec=-1, current_exec_param=-1, put_data=0
                 currTuple=0, current_col=-1, lobj_fd=-1
                 maxRows=0, rowset_size=1, keyset_size=0, cursor_type=0, scroll_concurrency=1
                 cursor_name='SQL_CUR025A0DD0'
                 ----------------QResult Info -------------------------------
                 fields=39461712, manual_tuples=0, backend_tuples=41585616, tupleField=41585616, conn=39108184
                 fetch_count=0, num_total_rows=1, num_fields=29, cursor='(NULL)'
                 message='(NULL)', command='SELECT', notice='(NULL)'
                 status=8, inTuples=0
CONN ERROR: func=PGAPI_GetData, desc='', errnum=0, errmsg='(NULL)'
            ------------------------------------------------------------
            henv=39126880, conn=39108184, status=1, num_stmts=16
            sock=39125296, stmts=39125216, lobj_type=549097
            ---------------- Socket Info -------------------------------
            socket=624, reverse=0, errornumber=0, errormsg='(NULL)'
            buffer_in=39119184, buffer_out=41484360
            buffer_filled_in=868, buffer_filled_out=0, buffer_read_in=868
STATEMENT ERROR: func=PGAPI_GetData, desc='', errnum=14, errmsg='Received an unsupported type from Postgres.'
                 ------------------------------------------------------------
                 hdbc=39108184, stmt=39456208, result=39464608
                 manual_result=0, prepare=0, internal=0
                 bindings=39452704, bindings_allocated=29
                 parameters=0, parameters_allocated=0
                 statement_type=0, statement='select item.awbnumber, item.contenttype_id, item.other_contenttype, item.deliveryaddress_id, item.deliveryaddressname, item.detail_id, item.handling_id, item.height, item.item_id, item.itemnumber, item.itemtype_id, item.other_itemtype, item.lastchanged, item.length, item.order_id, item.realdeliverydate, item.realdeliverytime, item.servicetype_id, item.signaturetype_id, item.signedby, item.staff_id, item.value, item.weight, item.width, COALESCE(contenttypecontenttype.description , item.other_contenttype) as contenttype_description, handlinghandling.description as handling_description, COALESCE(itemtypeitemtype.description , item.other_itemtype) as itemtype_description, servicetypeservicetype.description as servicetype_description, signaturetypesignaturetype.description as signaturetype_description from item
 left join contenttype as contenttypecontenttype on (item.contenttype_id = contenttypecontenttype.contenttype_id)  
 left join handling as handlinghandling on (item.handling_id = handlinghandling.handling_id)  
 left join itemtype as itemtypeitemtype on (item.itemtype_id = itemtypeitemtype.itemtype_id)  
 left join servicetype as servicetypeservicetype on (item.servicetype_id = servicetypeservicetype.servicetype_id)  
 left join signaturetype as signaturetypesignaturetype on (item.signaturetype_id = signaturetypesignaturetype.signaturetype_id)   where  item.order_id=827;'
                 stmt_with_params='select item.awbnumber, item.contenttype_id, item.other_contenttype, item.deliveryaddress_id, item.deliveryaddressname, item.detail_id, item.handling_id, item.height, item.item_id, item.itemnumber, item.itemtype_id, item.other_itemtype, item.lastchanged, item.length, item.order_id, item.realdeliverydate, item.realdeliverytime, item.servicetype_id, item.signaturetype_id, item.signedby, item.staff_id, item.value, item.weight, item.width, COALESCE(contenttypecontenttype.description , item.other_contenttype) as contenttype_description, handlinghandling.description as handling_description, COALESCE(itemtypeitemtype.description , item.other_itemtype) as itemtype_description, servicetypeservicetype.description as servicetype_description, signaturetypesignaturetype.description as signaturetype_description from item
 left join contenttype as contenttypecontenttype on (item.contenttype_id = contenttypecontenttype.contenttype_id)  
 left join handling as handlinghandling on (item.handling_id = handlinghandling.handling_id)  
 left join itemtype as itemtypeitemtype on (item.itemtype_id = itemtypeitemtype.itemtype_id)  
 left join servicetype as servicetypeservicetype on (item.servicetype_id = servicetypeservicetype.servicetype_id)  
 left join signaturetype as signaturetypesignaturetype on (item.signaturetype_id = signaturetypesignaturetype.signaturetype_id)   where  item.order_id=827;'
                 data_at_exec=-1, current_exec_param=-1, put_data=0
                 currTuple=0, current_col=-1, lobj_fd=-1
                 maxRows=0, rowset_size=1, keyset_size=0, cursor_type=0, scroll_concurrency=1
                 cursor_name='SQL_CUR025A0DD0'
                 ----------------QResult Info -------------------------------
                 fields=39461712, manual_tuples=0, backend_tuples=41585616, tupleField=41585616, conn=39108184
                 fetch_count=0, num_total_rows=1, num_fields=29, cursor='(NULL)'
                 message='(NULL)', command='SELECT', notice='(NULL)'
                 status=8, inTuples=0
CONN ERROR: func=PGAPI_GetData, desc='', errnum=0, errmsg='(NULL)'
            ------------------------------------------------------------
            henv=39126880, conn=39108184, status=1, num_stmts=16
            sock=39125296, stmts=39125216, lobj_type=549097
            ---------------- Socket Info -------------------------------
            socket=624, reverse=0, errornumber=0, errormsg='(NULL)'
            buffer_in=39119184, buffer_out=41484360
            buffer_filled_in=868, buffer_filled_out=0, buffer_read_in=868
