patches for Mysql 4.1
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3548
Reported by Dan Nelson dnelson_1901@yahoo.com
MySQL 4.1 changed the returnvalues of most of their functions. Instead of returning -1 on errors like previous version, it now returns 1. MySQL docs say that any nonzero result is an error, but Pike's code checks for "< 0". This causes weird behaviour when pike is linked with mysql-4.1 libraries. Attached is a patch for 7.5; it should apply relatively cleanly to 7.2 & 7.4. I have also changed some char * to const char * because the mysql_error() function now returns a const char *.