From db4e376fdf81276d8e3d218ba8b6cae9ce062d38 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Sun, 29 Jul 2007 23:32:48 +0000 Subject: [PATCH] fixing a bug in the user profile migration --- docs/upgrades/upgrade_7.3.22-7.4.0.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/upgrades/upgrade_7.3.22-7.4.0.pl b/docs/upgrades/upgrade_7.3.22-7.4.0.pl index 14d4e7685..a7636b719 100644 --- a/docs/upgrades/upgrade_7.3.22-7.4.0.pl +++ b/docs/upgrades/upgrade_7.3.22-7.4.0.pl @@ -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]); }