From c328a15469ea25ab11bd8c29f244c5f288a312a4 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Wed, 19 May 2004 15:17:52 +0000 Subject: [PATCH] More errno stuff. --- ext/pdo_mysql/mysql_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/pdo_mysql/mysql_driver.c b/ext/pdo_mysql/mysql_driver.c index f2bd638464..3d8ffc0513 100755 --- a/ext/pdo_mysql/mysql_driver.c +++ b/ext/pdo_mysql/mysql_driver.c @@ -32,12 +32,12 @@ 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; } /* }}} */ -- 2.50.1