mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-28 00:21:56 +00:00
Missing /g in a Quoter regex
This commit is contained in:
@@ -89,6 +89,21 @@ is_deeply(
|
||||
'splits with a db',
|
||||
);
|
||||
|
||||
is_deeply(
|
||||
[$q->split_unquote("`db`.`tb``l```")],
|
||||
[qw(db tb`l`)],
|
||||
'splits with a quoted db.tbl ad embedded quotes',
|
||||
);
|
||||
|
||||
TODO: {
|
||||
local $::TODO = "Embedded periods not yet supported";
|
||||
is_deeply(
|
||||
[$q->split_unquote("`d.b`.`tbl`")],
|
||||
[qw(d.b tbl)],
|
||||
'splits with embedded periods: `d.b`.`tbl`',
|
||||
);
|
||||
}
|
||||
|
||||
is( $q->literal_like('foo'), "'foo'", 'LIKE foo');
|
||||
is( $q->literal_like('foo_bar'), "'foo\\_bar'", 'LIKE foo_bar');
|
||||
is( $q->literal_like('foo%bar'), "'foo\\%bar'", 'LIKE foo%bar');
|
||||
|
Reference in New Issue
Block a user