X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 86DB5D899F for ; Fri, 2 Sep 2005 19:18:38 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 84260-08 for ; Fri, 2 Sep 2005 22:18:33 +0000 (GMT) Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by svr1.postgresql.org (Postfix) with SMTP id A1CB1D7EAD for ; Fri, 2 Sep 2005 19:18:31 -0300 (ADT) Received: (qmail invoked by alias); 02 Sep 2005 22:18:33 -0000 Received: from A3306.karlshof.wh.tu-darmstadt.de (EHLO [130.83.220.213]) [130.83.220.213] by mail.gmx.net (mp015) with SMTP; 03 Sep 2005 00:18:33 +0200 X-Authenticated: #19323740 Message-ID: <4318CFC7.5080700@gmx.de> Date: Sat, 03 Sep 2005 00:18:47 +0200 From: Matthias Weinert User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: c++ mfc: problem with bytea X-Enigmail-Version: 0.92.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 required=5 tests=[none] X-Spam-Level: X-Archive-Number: 200509/35 X-Sequence-Number: 5933 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