Bug #17065 [Opn->Csd]: There is no NEW row in on DELETE trigger
| From: | l dot alberton at quipo dot it | Date: | Sun, 29 Aug 2010 10:31:05 +0000 |
| Subject: | Bug #17065 [Opn->Csd]: There is no NEW row in on DELETE trigger | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-4707@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=17065&edit=1
ID: 17065
Updated by: l.alberton@quipo.it
Reported By: irangame at gmail dot com
Summary: There is no NEW row in on DELETE trigger
-Status: Open
+Status: Closed
Type: Bug
Package: MDB2
Operating System: Windows XP SP2
PHP Version: 5.3.0
-Assigned To:
+Assigned To: quipo
Roadmap Versions:
New Comment:
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: quipo
This bug has been fixed in SVN.
If this was a documentation problem, the fix will appear on pear.php.net
by the end of next Sunday (CET).
If this was a problem with the pear.php.net website, the change should
be live shortly.
Otherwise, the fix will appear in the package's next release.
Thank you for the report and for helping us make PEAR better.
Previous Comments:
------------------------------------------------------------------------
[2010-08-17 17:12:06] ifeghali
-Package: MDB2_Schema
+Package: MDB2
Looks to me an error on MDB2 end. It is not handling properly the
creation of ON DELETE triggers. This can be relevant:
http://forums.mysql.com/read.php?99,252405,252405
------------------------------------------------------------------------
[2010-02-04 05:25:23] irangame
Added #patch bug:17065;patch:Schema.XML.file;revision:1265261123;.
------------------------------------------------------------------------
[2010-02-04 05:19:48] irangame
Description:
------------
I wanna to run a Schema XML file.
DB Driver->MySQL 5.1.33
Test script:
---------------
$result = $schema->installSchema($main_file, $variables, $base_file,
$data, $create, $debug);
Expected result:
----------------
MDB2 Error: not found : _doQuery: [Error message: Could not execute
statement] [Last executed query: CREATE TRIGGER test_pk_delete_trg
BEFORE DELETE ON test1 FOR EACH ROW BEGIN SET FOREIGN_KEY_CHECKS = 0; IF
(SELECT
test2.test_id AS test_id FROM test2 WHERE test_id = OLD.id)
IS NOT NULL AND (NEW.id <> OLD.id) THEN CALL
delete_ON_TABLE_test2_VIOLATES_FOREIGN_KEY_CONSTRAINT(); END IF; SET
FOREIGN_KEY_CHECKS = 1; END;] [Native code: 1363] [Native message: There
is no NEW row in on DELETE trigger]
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=17065&edit=1