ODBC API - Mailing list pgsql-odbc

From Brian Furey
Subject ODBC API
Date
Msg-id 20030916082237.52556.qmail@web21502.mail.yahoo.com
Whole thread Raw
List pgsql-odbc
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

pgsql-odbc by date:

Previous
From: "Greg Campbell"
Date:
Subject: Re: how to compile the odbc source?
Next
From: "Mikhail Umorin"
Date:
Subject: Delphi7, ADO, ODBC and PostgreSQL connection problems