Closed Bug 288408 Opened 20 years ago Closed 20 years ago

Checksetup fails on new databases or on upgrades

Categories

(Bugzilla :: Installation & Upgrading, defect, P1)

2.19.2
defect

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: bugreport, Assigned: gerv)

Details

(Keywords: regression)

Attachments

(1 file)

Bug 73665 broke checksetup for new databases.  It removed emailflags but did not
reduce the number fo placeholders.

(we should add a tinderbox test for starting from a blank DB)

Here's the culprit...

         $dbh->do(
           q{INSERT INTO profiles (login_name, realname, cryptpassword, 
-                                  emailflags, disabledtext, refreshed_when)
+                                  disabledtext, refreshed_when)
             VALUES (?, ?, ?, ?, ?, ?)},
             undef, $login, $realname, $cryptedpassword, 
-            Bugzilla::Constants::DEFAULT_EMAIL_SETTINGS, '', '1900-01-01
00:00:00');
+            '', '1900-01-01 00:00:00');
There is a tinderbox test for starting from a blank DB. It's just that it also
tries to compile the templates, so it's burning at that point, right now.
Oh, no, it's actually burning at this point, now. :-)

DBD::mysql::db do failed: You have an error in your SQL syntax near ')' at line
3 at ./checksetup.pl line 4222
Priority: -- → P1
Summary: Checksetup fails on new databases → Checksetup fails on new databases or on upgrades
Target Milestone: --- → Bugzilla 2.20
Flags: blocking2.20?
Sorry :-(

I'm at work and can't do a patch. Can someone oblige? Email me and I'll r= it.

Gerv
Attached patch Patch v.1Splinter Review
Here's the obvious fix. Joel or Max, can you r=?

Gerv
Assignee: installation → gerv
Status: NEW → ASSIGNED
Attachment #179216 - Flags: review?(bugreport)
Attachment #179216 - Flags: review?(bugreport) → review+
Flags: blocking2.20?
Flags: blocking2.20+
Flags: approval+
Fixed.

Checking in checksetup.pl;
/cvsroot/mozilla/webtools/bugzilla/checksetup.pl,v  <--  checksetup.pl
new revision: 1.380; previous revision: 1.379
done

Gerv
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: