fixing a bug in the user profile migration
This commit is contained in:
parent
40a4c3c487
commit
db4e376fdf
1 changed files with 2 additions and 2 deletions
|
|
@ -403,8 +403,8 @@ sub buildNewUserProfileTable {
|
||||||
# Write to the temp table
|
# Write to the temp table
|
||||||
my $sql
|
my $sql
|
||||||
= q{INSERT INTO tmp_userProfileData }
|
= q{INSERT INTO tmp_userProfileData }
|
||||||
. q{(userId,} . join(",", map { $db->dbh->quote_identifier($_) } keys %profile) . q{)}
|
. q{(} . join(", ", "userId", map { $db->dbh->quote_identifier($_) } keys %profile) . q{)}
|
||||||
. q{VALUES (?,} . join(",",("?")x values %profile) . q{)}
|
. q{ VALUES (} . join(", ", "?", ("?")x values %profile) . q{)}
|
||||||
;
|
;
|
||||||
$db->write($sql, [$user->{userId},values %profile]);
|
$db->write($sql, [$user->{userId},values %profile]);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue