Skip to content

Commit

Permalink
when triggers are supported, two triggers are created to emulate ON U…
Browse files Browse the repository at this point in the history
…PDATE / ON DELETE actions for FOREIGN KEY constraints. Known limitation: since mysql doesn't support multiple triggers with the same action time and event for one table, if there are multiple table referencing the same table, only the first one will have the triggers created.

git-svn-id: http://svn.php.net/repository/pear/packages/MDB2/trunk@254587 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
quipo committed Mar 8, 2008
1 parent 0abfcc3 commit 58d7101
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions package_mysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
- fixed bug #13180: MySQL driver tells SAVEPOINT is supported for MyISAM tables
- fixed bug #13283: replace() doesn't respect quote_identifiers option
- request #13313: setCharSet() supports 'COLLATE' too
- when triggers are supported, two triggers are created to emulate ON UPDATE / ON DELETE actions
for FOREIGN KEY constraints. Known limitation: since mysql doesn't support multiple triggers
with the same action time and event for one table, if there are multiple table referencing
the same table, only the first one will have the triggers created.
note:
- the multi_query test failes because this is not supported by ext/mysql
Expand Down
5 changes: 5 additions & 0 deletions package_mysqli.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
- fixed bug #13180: MySQL driver tells SAVEPOINT is supported for MyISAM tables
- fixed bug #13283: replace() doesn't respect quote_identifiers option
- request #13313: setCharSet() supports 'COLLATE' too
- when triggers are supported, two triggers are created to emulate ON UPDATE / ON DELETE actions
for FOREIGN KEY constraints. Known limitation: since mysql doesn't support multiple triggers
with the same action time and event for one table, if there are multiple table referencing
the same table, only the first one will have the triggers created.
open todo items:
- use a trigger to emulate setting default now()
Expand Down

0 comments on commit 58d7101

Please sign in to comment.