Fix silent failures on autoinc PK without an is_auto_increment attribute
[dbsrgits/DBIx-Class.git] / t / cdbi / testlib / MyFoo.pm
index 7df9c6f..fa45d7d 100644 (file)
@@ -13,6 +13,12 @@ __PACKAGE__->has_a(
   inflate => sub { Date::Simple->new(shift) },
   deflate => 'format',
 );
+
+# Disables the implicit autoinc-on-non-supplied-pk behavior
+# (and the warning that goes with it)
+# This is the same behavior as it was pre 0.082900
+__PACKAGE__->column_info('myid')->{is_auto_increment} = 0;
+
 #__PACKAGE__->find_column('tdate')->placeholder("IF(1, CURDATE(), ?)");
 
 sub create_sql {