fixing a bug in the user profile migration

This commit is contained in:
JT Smith 2007-07-29 23:32:48 +00:00
parent 40a4c3c487
commit db4e376fdf

View file

@ -403,8 +403,8 @@ sub buildNewUserProfileTable {
# Write to the temp table
my $sql
= q{INSERT INTO tmp_userProfileData }
. q{(userId,} . join(",", map { $db->dbh->quote_identifier($_) } keys %profile) . q{)}
. q{VALUES (?,} . join(",",("?")x values %profile) . q{)}
. q{(} . join(", ", "userId", map { $db->dbh->quote_identifier($_) } keys %profile) . q{)}
. q{ VALUES (} . join(", ", "?", ("?")x values %profile) . q{)}
;
$db->write($sql, [$user->{userId},values %profile]);
}