pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Byron Nikolaidis <byronn@insightdist.com>
To: angg <angg@vng.ru>
Cc: pgsql-interfaces@hub.org
Subject: Re: [INTERFACES] Unexpected protocol character from backend
Date: Thu, 19 Nov 1998 08:40:10 -0500
Message-ID: <36541FB9.28A3C9C@insightdist.com> (raw)
References: <01be139d$dda31bc0$0b02a8c0@mis1>




angg wrote:

> I'm trying to use large objects from Borland C++ Builder via ODBC. Large
> object wasn't created with an error message "Unexpected protocol character
> from backend". This is quotting from mylog.log file:
>
> [...]
> SQLPutData: (1) cbValue = 8192
> send_function(): conn=51460548, fnid=957, result_is_int=1, nargs=1
> send_function: done sending function
>   arg[0]: len = 4, isint = 1, integer = 393216, ptr = 393216
>     done sending args
> SOCK_flush_output: self->buffer_out = F , self->buffer_filled_out = 19,
> written = 19
>   after flush output
>    got id = Z
> send_function: error - Unexpected protocol character from backend
> OID: 0
> STATEMENT ERROR: func=SQLPutData, desc='', errnum=1, errmsg='Couldnt create
> large object.'
> CONN ERROR: func=SQLPutData, desc='', errnum=6, errmsg='Unexpected protocol
> character from backend'
> **** SQLError: henv=0, hdbc=0, hstmt=51475184
> SC_get_error: status = 1, msg = #Couldnt create large object.;
> Unexpected protocol character from backend#
>        szSqlState = '08S01', szError='Couldnt create large object.;
> Unexpected protocol character from backend'
> **** SQLError: henv=0, hdbc=0, hstmt=51475184
>        returning NO_DATA_FOUND
> [...]
>
> Couldn't anybody tell me please where can I get information about the
> "protocol character".
>
>

This is a 6.4 protocol bug in the odbc driver.  I will fix it but in the
meantime, you can set the protocol to 6.3 and it should work.

Byron





view thread (2+ messages)

Message-ID: <36541FB9.28A3C9C@insightdist.com>
Permalink:  ../36541FB9.28A3C9C@insightdist.com/
Also on:    postgresql.org/message-id/36541FB9.28A3C9C@insightdist.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: byronn@insightdist.com, angg@vng.ru, pgsql-interfaces@hub.org
  Subject: Re: [INTERFACES] Unexpected protocol character from backend
  In-Reply-To: <36541FB9.28A3C9C@insightdist.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox