- Fix t/52leaks.t failures on compilerless systems (RT#104429)
- Fix t/storage/quote_names.t failures on systems with specified Oracle
test credentials while missing the optional Math::Base36
+ - Fix test failures when DBICTEST_SYBASE_DSN is set (unnoticed change
+ in error message wording during 0.082800 and a bogus test)
* Misc
- Skip tests in a way more intelligent and speedy manner when optional
# test invalid _insert_bulk (missing required column)
#
-# There should be a rollback, reconnect and the next valid _insert_bulk should
-# succeed.
throws_ok {
$schema->resultset('Artist')->populate([
{
charfield => 'foo',
}
]);
- } qr/no value or default|does not allow null|placeholders/i,
+ }
# The second pattern is the error from fallback to regular array insert on
# incompatible charset.
# The third is for ::NoBindVars with no syb_has_blk.
+ qr/
+ \Qno value or default\E
+ |
+ \Qdoes not allow null\E
+ |
+ \QUnable to invoke fast-path insert without storage placeholder support\E
+ /xi,
'_insert_bulk with missing required column throws error';
# now test _insert_bulk with IDENTITY_INSERT
"$db name_sep with quote_names => 1 is $name_sep_text";
# if something was produced - it better be quoted
- if ( my $ddl = try { $schema->deployment_statements } ) {
-
+ if (
+ # the SQLT producer has no idea what quotes are :/
+ $db ne 'SYBASE'
+ and
+ my $ddl = try { $schema->deployment_statements }
+ ) {
my $quoted_artist = $sql_maker->_quote('artist');
like ($ddl, qr/^CREATE\s+TABLE\s+\Q$quoted_artist/msi, "$db DDL contains expected quoted table name");