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

index 978f1ab..69cfc15 100644 (file)
@@ -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);