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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ordnas@php.net
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 05:01:42 2025 UTC