[Jifty-commit] r2844 - in jifty/trunk: lib/Jifty
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Mon Feb 26 11:34:13 EST 2007
Author: sterling
Date: Mon Feb 26 11:34:13 2007
New Revision: 2844
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Upgrade.pm
Log:
added boundary match in rename to prevent similar column names from being hit by accident
Modified: jifty/trunk/lib/Jifty/Upgrade.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Upgrade.pm (original)
+++ jifty/trunk/lib/Jifty/Upgrade.pm Mon Feb 26 11:34:13 2007
@@ -102,7 +102,7 @@
my @column_info = ( split /,/, $schema );
my @column_names = map { /^\s*(\S+)/ ? $1 : () } @column_info;
- s/^(\s*)\Q$args{column}\E/$1$args{to}/i for @column_info;
+ s/^(\s*)\b\Q$args{column}\E\b/$1$args{to}/i for @column_info;
my $new_schema = $new_create_clause . join( ',', @column_info );
my $copy_columns = join(
More information about the Jifty-commit
mailing list