From: Marc Seefeldt Date: March 1 2000 7:31am Subject: [Fwd: Bug?] List-Archive: http://lists.mysql.com/bugs/29 Message-Id: <38BCC735.F973540D@eed.ericsson.se> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi there, i am working with MySQL 3.22.27 and Python 1.5.2 (MySQLmodule 1.4). This module is using the function mysql_fetch_field_direct which is defined in the reference manual as: MYSQL_FIELD *mysql_fetch_field_direct(MYSQL_RES *result, unsigned int fieldnr) In mysql.h it is defined as: #define mysql_fetch_field_direct(res,fieldnr) (&(res)->fields[fieldnr]) In an older revision the first & before res was not there. The module relies on the older revision so i wonder if this is a mistake or if the source has been changed on purpose. The module is using the function in the following way: static PyObject * pythonify_res_fields(res) MYSQL_RES *res; { int i; MYSQL_FIELD *tf; [...] tf = &(mysql_fetch_field_direct(res, i)); [...] } My C reading is pretty bad so i need your help: Should i change the source code of the module or of MySQL. Many thanks, Marc