]> granicus.if.org Git - php/commitdiff
More errno stuff.
authorIlia Alshanetsky <iliaa@php.net>
Wed, 19 May 2004 15:17:52 +0000 (15:17 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 19 May 2004 15:17:52 +0000 (15:17 +0000)
ext/pdo_mysql/mysql_driver.c

index f2bd6384642f47853879da330302b328f45edbb2..3d8ffc0513a54fb8b8943f4fbe426466b3710c48 100755 (executable)
 
 int _pdo_mysql_error(char *what, int mysql_errno, const char *file, int line TSRMLS_DC) /* {{{ */
 {
-       switch (errno) {
+       switch (mysql_errno) {
                default:
                        php_error_docref(NULL TSRMLS_CC, E_WARNING, "(%s:%d) %s: %d", file, line, what, mysql_errno);
                        break;
        }
-       return errno;
+       return mysql_errno;
 }
 /* }}} */