Kurt Roeckx wrote:
ret =
SQLBindParameter(hStmt,i->first+1,SQL_PARAM_INPUT,SQL_C_CHAR,SQL_CHAR,0,0,NULL,0,(SQLLEN*)&m_sqli[i->first]);
works. Unfortunately I have no 64bit system...
I guess it depends on what you mean with "works". It will make it
build, but it'll cause problem at runtime.
You have is:
std::map<int,SQLINTEGER> m_sqli
and:
typedef long SQLLEN;
typedef int SQLINTEGER;
and sizeof(long) != sizeof(int)
What looks like a better thing to do is change the SQLINTEGER to an
SQLLEN, if that's what it contains.
The attached patch makes it build for me.
Thank you for the patch. I'll make a new package this week and send the
patch to upstream.
Best regards
Andreas
--
("`-''-/").___..--''"`-._
`o_ o ) `-. ( ).`-.__.`)
(_Y_.)' ._ ) `._ `. ``-..-'
_..`--'_..-_/ /--'_.' .'
(il).-'' (li).' ((!.-'
Andreas Tscharner [EMAIL PROTECTED]
http://www.vis.ethz.ch/~andy ICQ-No. 14356454
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]