[TYPO3-core] RFC: #8786: missing wrapper for mysql_errno
Martin Kutschker
masi-no at spam-typo3.org
Sun Jul 13 16:11:47 CEST 2008
Steffen Kamper schrieb:
> Hi masi,
>
> "Martin Kutschker" <masi-no at spam-typo3.org> schrieb im Newsbeitrag
> news:mailman.1.1214292105.5775.typo3-team-core at lists.netfielders.de...
>> 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.
>>
>
> i think this is a way to check kind of error or react on a specific error
> you may expect.
> IMHO this integration is consequent with having the sql_error giving text
> message.
>
>> BTW, this patch also breaks DBAL. Please don't add stuff to t3lib_db
>> without adding at least a stub to DBAL as well.
>>
>
> correct, i addapted it to DBAL, see attached patch
+1 from reading.
Masi
More information about the TYPO3-team-core
mailing list