X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id CD917D1B500 for ; Tue, 16 Sep 2003 08:23:08 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 29468-08 for ; Tue, 16 Sep 2003 05:22:38 -0300 (ADT) Received: from web21502.mail.yahoo.com (web21502.mail.yahoo.com [66.163.169.13]) by svr1.postgresql.org (Postfix) with SMTP id D0333D1B4F2 for ; Tue, 16 Sep 2003 05:22:35 -0300 (ADT) Message-ID: <20030916082237.52556.qmail@web21502.mail.yahoo.com> Received: from [213.217.68.32] by web21502.mail.yahoo.com via HTTP; Tue, 16 Sep 2003 09:22:37 BST Date: Tue, 16 Sep 2003 09:22:37 +0100 (BST) From: =?iso-8859-1?q?Brian=20Furey?= Subject: ODBC API To: pgsql-odbc@postgresql.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-805092669-1063700557=:52241" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.9 tagged_above=0.0 required=5.0 tests=BAYES_30, HTML_20_30, HTML_FONT_COLOR_GREEN, RCVD_IN_ORBS X-Spam-Level: X-Archive-Number: 200309/59 X-Sequence-Number: 3257 --0-805092669-1063700557=:52241 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hello, im using postgresql and odbc driver with MFC and Visual C++. I am trying to do bulk update using the ODBC API and its not working. ::SQLBindCol(m_hstmt,0,SQL_INTEGER,&m_ppvData[0],0,&sbz); ::SQLBindCol(m_hstmt,1,SQL_INTEGER,&m_ppvData[1],18,&sbz); ::SQLBindCol(m_hstmt,2,SQL_INTEGER,&m_ppvData[2],18,&sbz); AFX_ODBC_CALL(::SQLSetPos(m_hstmt, wRow, SQL_UPDATE, wLockType)); My problem is binding columns to 'void' pointers. Suggestions apprec. Brifure. --------------------------------- Want to chat instantly with your online friends? Get the FREE Yahoo!Messenger --0-805092669-1063700557=:52241 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
Hello,
im using postgresql and odbc driver with MFC and Visual C++.
I am trying to do bulk update using the ODBC API and its not working.
 

::SQLBindCol(m_hstmt,0,SQL_INTEGER,&m_ppvData[0],0,&sbz);

::SQLBindCol(m_hstmt,1,SQL_INTEGER,&m_ppvData[1],18,&sbz);

::SQLBindCol(m_hstmt,2,SQL_INTEGER,&m_ppvData[2],18,&sbz);

AFX_ODBC_CALL(::SQLSetPos(m_hstmt, wRow, SQL_UPDATE, wLockType));

My problem is binding columns to 'void' pointers.

Suggestions apprec.

Brifure.

 


Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger --0-805092669-1063700557=:52241--