projects
/
dbsrgits/DBIx-Class-Historic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
0a06437
)
support INSERT OR UPDATE triggers for Oracle
Rafael Kitover [Thu, 20 May 2010 14:28:18 +0000 (14:28 +0000)]
lib/DBIx/Class/Storage/DBI/Oracle/Generic.pm
patch
|
blob
|
blame
|
history
t/73oracle.t
patch
|
blob
|
blame
|
history
diff --git
a/lib/DBIx/Class/Storage/DBI/Oracle/Generic.pm
b/lib/DBIx/Class/Storage/DBI/Oracle/Generic.pm
index
c832536
..
0b83e26
100644
(file)
--- a/
lib/DBIx/Class/Storage/DBI/Oracle/Generic.pm
+++ b/
lib/DBIx/Class/Storage/DBI/Oracle/Generic.pm
@@
-85,7
+85,7
@@
sub _dbh_get_autoinc_seq {
{
$schema ? (owner => $schema) : (),
table_name => $table || $source_name,
- triggering_event => 'INSERT',
+ triggering_event => { -like => '%INSERT%' },
status => 'ENABLED',
},
);
diff --git
a/t/73oracle.t
b/t/73oracle.t
index
0aa3ee7
..
a9ee688
100644
(file)
--- a/
t/73oracle.t
+++ b/
t/73oracle.t
@@
-87,7
+87,7
@@
$dbh->do(qq{
});
$dbh->do(qq{
CREATE OR REPLACE TRIGGER cd_insert_trg
- BEFORE INSERT ON cd
+ BEFORE INSERT OR UPDATE ON cd
FOR EACH ROW
BEGIN
IF :new.cdid IS NULL THEN