[TYPO3-core] RFC: #8786: missing wrapper for mysql_errno
Martin Kutschker
masi-no at spam-typo3.org
Tue Jun 24 09:21:45 CEST 2008
Steffen Kamper schrieb:
> Hi,
>
> This is an SVN patch request.
>
> Type: Bugfix
>
> Bugtracker reference:
> http://bugs.typo3.org/view.php?id=8786
>
> Branches: trunk
>
> there is a wrapper for mysql_error, but not for mysql_errno
>
> Attached patch adds this wrapper.
I'm not entirely happy with that as error numbers are completely
non-portable. As developer you should at least have a way to check if
this is really a Mysql error you're getting.
BTW, this patch also breaks DBAL. Please don't add stuff to t3lib_db
without adding at least a stub to DBAL as well.
Masi
More information about the TYPO3-team-core
mailing list