From: Hausmann J. I. <joh...@si...> - 2002-10-24 09:48:53
|
Hello , there ist a bug in Result_store.cc (mysqlcppapi-1.9.0)=20 The Problem with the wrong cast comes from the mysql.h - header ,=20 here mysql_fetch_lengths is declared as : ( maybe changed with version = .33 ? )=20 mysql.h: unsigned long * STDCALL = mysql_fetch_lengths(MYSQL_RES *result);=20 therefore it gives the address of an array of long !!=20 In Result_Store.cc the return value ist cast to unsigned int * , this doesn't matter on 32-Bit system but on 64-Bit systems like Compaq = Tru64 its a problem ! Also the constructor Row::Row(MYSQL_ROW d, const Result_Use *r, = unsigned long *jj)=20 has to be changed ! Another question, has someone ported mysqlcppapi to Compaqs CXX, I would be happy about a = good libtool configuration to get support for the cxx_repository ! ______________________________________________________ Mit freundlichen G r=FC=DFen / Best regards SIEMENS Siemens AG Power Generation IT58, Application Development Freyeslebenstr. 1 91058 Erlangen / GERMANY Johannes Hausmann mailto:Joh...@si... Fon +49 9131 18 85764 Fax +49 9131 18 4836 ______________________________________________________ |