Add a warning for DBD::Pg < 1.49
[dbsrgits/DBIx-Class.git] / t / 79uuid.t
CommitLineData
70350518 1use strict;
2use warnings;
3
4use Test::More;
5use lib qw(t/lib);
6use DBICTest;
7
a47e1233 8my $schema = DBICTest->init_schema();
7da9cd47 9
10eval 'use Data::UUID ; 1'
58d387fe 11 or plan skip_all => 'Install Data::UUID run this test';
7da9cd47 12
13plan tests => 1;
2d679367 14DBICTest::Schema::Artist->load_components('UUIDColumns');
15DBICTest::Schema::Artist->uuid_columns('name');
16Class::C3->reinitialize();
7da9cd47 17
f9db5527 18my $artist = $schema->resultset("Artist")->create( { artistid => 100 } );
7da9cd47 19like $artist->name, qr/[\w-]{36}/, 'got something like uuid';
20