pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matthias Weinert <confusingness@gmx.de>
To: pgsql-odbc@postgresql.org
Subject: c++ mfc: problem with bytea
Date: Sat, 03 Sep 2005 00:18:47 +0200
Message-ID: <4318CFC7.5080700@gmx.de> (raw)

Hi,

i've got a problem with RFX_Binary. The maxLength is set to 10000000, in
the RFX_Binary-Cmd and in the ODBC-Options for MaxLongVarchar.

If i try to recieve data, they are truncated - if i try to AddNew() and
Update(), an assertion fails... corresponding TRACE is:
TRACE(traceDatabase, 0, "Error: field address (column %u) has
changed!\n", nField);
(dbrfx.cpp, void AFXAPI AfxLoadField(CRecordset& rs, UINT nField, void*
pvField, LONG_PTR* plLength)

The type of the RFX-Variable is CByteArray (visual studio chose this, so
i think it should be correct..).

I also tried to use a bugfixed version of RFX_Binary (google for
RFXBINFX.EXE), but this didn't work either.
However, i'd like to stick to Postgresql...

If somebody needs the postgresql log... its available at
http://manofhonor.de/mylog_2308.zip

It'd be GREAT if you solve this....


Thanks for help,
Matthias Weinert







view thread (3+ messages)  latest in thread

Message-ID: <4318CFC7.5080700@gmx.de>
Permalink:  ../4318CFC7.5080700@gmx.de/
Also on:    postgresql.org/message-id/4318CFC7.5080700@gmx.de

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: confusingness@gmx.de
  Subject: Re: c++ mfc: problem with bytea
  In-Reply-To: <4318CFC7.5080700@gmx.de>
  References: <4318CFC7.5080700@gmx.de>

* 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