Commit 11faa7cf authored by Leo Gordon's avatar Leo Gordon
Browse files

bugfix: now correctly supports directory names with dots in them

parent 33544d54
......@@ -29,7 +29,7 @@ sub find_all_sql_schema_patches {
if(my $hive_root_dir = $ENV{'EHIVE_ROOT_DIR'} ) {
foreach my $patch_path ( split(/\n/, `ls -1 $hive_root_dir/sql/patch_20*.*sql*`) ) {
my ($patch_name, $driver) = split(/\./, $patch_path);
my ($patch_name, $driver) = ($patch_path=~/^(.+)\.(\w+)$/);
$driver = 'mysql' if ($driver eq 'sql'); # for backwards compatibility
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment