[PATCH] wrong arguments in sybaseRaiseError()
| From: | Roman Neuhauser | Date: | Mon, 09 Jun 2003 16:07:37 +0000 |
| Subject: | [PATCH] wrong arguments in sybaseRaiseError() | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-17206@lists.php.net to get a copy of this message | ||
sybaseRaiseError() calls raiseError() with wrong arguments:
$error['code'] and $error['message'] are swapped.
note that there are other issues with sybaseRaiseError() and error
handling in DB::sybase in general, but I'm leaving them for later.
--
If you cc me or remove the list(s) completely I'll most likely ignore
your message. see http://www.eyrie.org./~eagle/faqs/questions.html
Index: DB/DB/sybase.php =================================================================== RCS file: /repository/pear/DB/DB/sybase.php,v retrieving revision 1.7 diff -u -u -r1.7 sybase.php --- DB/DB/sybase.php 7 May 2003 16:58:28 -0000 1.7 +++ DB/DB/sybase.php 9 Jun 2003 16:00:52 -0000 @@ -183,7 +183,7 @@ { $native = $this->errorNative(); $error = $this->errorCode($native); - return $this->raiseError($error['message'], null, null, $error['userinfo'], $error['code']); + return $this->raiseError($error['code'], null, null, $error['userinfo'], $error['message']); } // }}} // {{{ simpleQuery()
Index: DB/DB/sybase.php =================================================================== RCS file: /repository/pear/DB/DB/sybase.php,v retrieving revision 1.7 diff -u -u -r1.7 sybase.php --- DB/DB/sybase.php 7 May 2003 16:58:28 -0000 1.7 +++ DB/DB/sybase.php 9 Jun 2003 16:00:52 -0000 @@ -183,7 +183,7 @@ { $native = $this->errorNative(); $error = $this->errorCode($native); - return $this->raiseError($error['message'], null, null, $error['userinfo'], $error['code']); + return $this->raiseError($error['code'], null, null, $error['userinfo'], $error['message']); } // }}} // {{{ simpleQuery()