php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25468 DB_Error::getMessage() and failed foreign key constraint
Submitted: 2003-09-10 08:46 UTC Modified: 2003-09-10 09:31 UTC
From: ordnas@php.net Assigned:
Status: Closed Package: PEAR related
PHP Version: 4.3.3 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
38 - 12 = ?
Subscribe to this entry?

 
 [2003-09-10 08:46 UTC] ordnas@php.net
Description:
------------
DB_Error::getMessage() doesn't return any error message upon a 
failed foreign key constraint in MySQL. The native MySQL error 
message would be: '#1216 - Cannot add or update a child row: a 
foreign key constraint fails'. 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-10 09:31 UTC] cox@php.net
Fixed in CVS, will be there in the next release. Thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 22:01:33 2024 UTC