projects
/
dbsrgits/DBIx-Class-Schema-Loader.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
243c6eb
)
Firebird: more specific autoinc trigger search
Rafael Kitover [Fri, 5 Mar 2010 20:00:51 +0000 (15:00 -0500)]
lib/DBIx/Class/Schema/Loader/DBI/InterBase.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/DBIx/Class/Schema/Loader/DBI/InterBase.pm
b/lib/DBIx/Class/Schema/Loader/DBI/InterBase.pm
index
978f1ab
..
69cfc15
100644
(file)
--- a/
lib/DBIx/Class/Schema/Loader/DBI/InterBase.pm
+++ b/
lib/DBIx/Class/Schema/Loader/DBI/InterBase.pm
@@
-119,6
+119,8
@@
sub _extra_column_info {
SELECT t.rdb$trigger_source
FROM rdb$triggers t
WHERE t.rdb$relation_name = ?
+AND t.rdb$system_flag = 0 -- user defined
+AND t.rdb$trigger_type = 1 -- BEFORE INSERT
EOF
$sth->execute($table);