Help for this page

Select Code to Download


  1. or download this
    CREATE TABLE t ( i int DEFAULT 3 NOT NULL, x varchar(255) );
    
  2. or download this
    __PACKAGE__->load_components( 'PK::Auto', 'Core' );
    __PACKAGE__->table('t');
    ...
            size          => 255,
        },
    );
    
  3. or download this
        my $rs = $schema->resultset( 'T' );
        isa_ok( $rs, 'DBIx::Class::ResultSet' );
    ...
    
        # THIS IS THE TEST THAT FAILS
        is( $row->i(), 3, 'new row has default value' );