RaiseError => 1, PrintError => 0
});
-eval { $dbh->do('DROP TABLE [test.dot]') };
+eval { $dbh->do('DROP TABLE [loadertest.dot]') };
$dbh->do(q{
- CREATE TABLE [test.dot] (
+ CREATE TABLE [loadertest.dot] (
id INT IDENTITY NOT NULL PRIMARY KEY,
dat VARCHAR(8)
)
eval {
make_schema_at(
'TestSL::Schema',
- { use_namespaces => 1 },
+ {
+ use_namespaces => 1,
+ constraint => qr/^loadertest\.dot\z/
+ },
[ $dsn, $user, $password, ]
);
};
ok !$@, 'table name with . parsed correctly';
diag $@ if $@;
-#system qq{$^X -pi -e 's/"test\.dot"/\\\\"[test.dot]"/' t/_common_dump/TestSL/Schema/Result/TestDot.pm};
+#system qq{$^X -pi -e 's/"test\.dot"/\\\\"[loadertest.dot]"/' t/_common_dump/TestSL/Schema/Result/TestDot.pm};
#diag do { local ($/, @ARGV) = (undef, "t/_common_dump/TestSL/Schema/Result/TestDot.pm"); <> };
#do "t/_common_dump/TestSL/Schema/Result/TestDot.pm";
and it doesn't work in the released version yet};
eval {
- my $rs = TestSL::Schema->resultset('TestDot');
+ my $rs = TestSL::Schema->resultset('LoadertestDot');
my $row = $rs->create({ dat => 'foo' });
$row->update({ dat => 'bar' });
$row = $rs->find($row->id);
rmtree $DUMP_DIR;
-$dbh->do('DROP TABLE [test.dot]');
+$dbh->do('DROP TABLE [loadertest.dot]');