[Zope] Zope with MySQL

Jonothan Farr jfarr@real.com
Wed, 16 Feb 2000 18:07:06 -0800


I had this same problem compiling the ZMySQLDA module with the latest version
of MySQL. It looks like a couple of the return types have changed in the MySQL
client API. I keep meaning to send in the patch but I haven't gotten a round
tuit yet. ;)

If you'd like I can send you the patch.

-jfarr

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hi! I'm a signature virus.
Copy me into your .sig to join the fun!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

----- Original Message -----
From: Stephen Bolinger <zope@fairenough.com>
To: <zope@zope.org>
Sent: Wednesday, February 16, 2000 5:55 PM
Subject: [Zope] Zope with MySQL


> Hi.  I just installed Zope, and I'm having a little difficulty installing
> either of the modules to connect to a MySQL database.  I have tried both
> ZMySQLDA-1.1.3 and MySQLdb-0.1.0.  I am always ending up with the same
> error:
>
> gcc -fpic  -I/usr/local/mysql/include -I/usr/include/mysql -g -O2 -I/usr/loc
> al/include/python1.5 -I/usr/local/include/python1.5 -DHAVE_CONFIG_H -c
> ./MySQLmodule.c
> ./MySQLmodule.c: In function `pythonify_row':
> ./MySQLmodule.c:238: warning: assignment from incompatible pointer type
> ./MySQLmodule.c: In function `pythonify_res_fields':
> ./MySQLmodule.c:384: invalid lvalue in unary `&'
> ./MySQLmodule.c: In function `STH_fetchdict':
> ./MySQLmodule.c:1125: invalid lvalue in unary `&'
> ./MySQLmodule.c:1147: invalid lvalue in unary `&'
> make: *** [MySQLmodule.o] Error 1
>
> Both modules give me similar errors, the one above is from ZMySQLDA-1.1.3.
> I'm running Linux 6.0 and I I have python1.5 installed.  Any ideas?
>
> Thanks,
> Stephen Bolinger
>
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>