Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MaxDB - Everything about MaxDB, formerly known as SAP DB
MySQL++ - Programming with the C++ API to MySQL
ODBC - ODBC with the MySQL Connector/ODBC driver
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
mysql openssl Question
mysql:it 's a db not a dbms how it 's possible?!
Does the binary log enabling affect the MySQL performances?
Strange behavior, Table Level Permission
FULLTEXT query format question
Preventing Duplicate Entries
Comparing and writing out BLOBS
Executing MySQL Commands From Within C Program
Can 't access mysql after kernel upgrade
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Downgrade Mysql from 4 to 3 23
MySQL Cluster Software
mysql test 4 1 fails with the gis test
ERROR 2002: Can 't connect to local MySQL server through socket
Getting Identity after INSERT
Update one field with more fields from another table
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
mysql have same function mthod as Oracle decode()
 
New function in php_maxdb

New function in php_maxdb

2006-12-15       - By Cristiano Caruso

 Back
I have some problem with my server farm, where there are 4 web server
(Debian Sarge + Apache 1.3 + PHP4 e PHP5)
I have an application that connect to MaxDB, and sometimes (randomly) I
get an error (mainly -3008 and -5010) after maxdb_connect.
I tried to check configuration, but seems ok.
So, I write a new function that I add to php extension.
Function called *maxdb_clear_error*, which cleans the errno property.

*diff php_maxdb.h ../maxdb.src/php_maxdb.h
*355d354
< PHP_FUNCTION(maxdb_clear_error);

* diff php_maxdb.c ../maxdb.src/php_maxdb.c
*343d342
<       PHP_FALIAS(clear_error,maxdb_clear_error,NULL)
514d512
<     PHP_FE(maxdb_clear_error, NULL)
3427,3432d3424
< PHP_FUNCTION(maxdb_clear_error)
< {
<       MAXDB_G(error_no) = 0;
< }
<
<


I don't know why SQLDBC catch error, but now I solved modifing source of
extension module.
Maybe it's usefull a function that clean false error.

Thank you
Cristiano Caruso
Comp.Sys
Italy