20 # check DBI behavior when fed a stringifiable/nummifiable value
22 my $crazynum = bless {}, 'DBICTest::CrazyInt';
23 cmp_ok( $crazynum, '==', 666 );
24 cmp_ok( $crazynum, 'eq', 999 );
26 my $schema = DBICTest->init_schema( no_populate => 1 );
27 $schema->storage->dbh_do(sub {
28 $_[1]->do('INSERT INTO artist (name) VALUES (?)', {}, $crazynum );
31 is( $schema->resultset('Artist')->next->name, 999, 'DBI preferred stringified version' );