Closed Bug 257419 Opened 20 years ago Closed 20 years ago

checksetup.pl should quote database name in "show table status" command

Categories

(Bugzilla :: Installation & Upgrading, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.18

People

(Reporter: Wurblzap, Assigned: Wurblzap)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.7) Gecko/20040707 Firefox/0.9.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.7) Gecko/20040707 Firefox/0.9.2

Database names with e.g. dashes will crash checksetup.pl otherwise.

Reproducible: Always
Steps to Reproduce:
Attached patch PatchSplinter Review
Attachment #157402 - Flags: review?
Comment on attachment 157402 [details] [diff] [review]
Patch

r=kiko if this works fine on any version of Perl and MySQL.
Attachment #157402 - Flags: review? → review+
> r=kiko if this works fine on any version of Perl and MySQL.

Perl doesn't care, interpolation inside `"' is done on variables, but not on quotes.

MySQL introduced quoting on backticks in version 3.23.6, so we're fine here as
well with Bugzilla requiring 3.23.41.

Note, though, that `"' will also work to quote identifiers if you run in ANSI
mode (from MySQL docs).
Flags: approval?
Flags: approval2.18?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: approval?
Flags: approval2.18?
Flags: approval2.18+
Flags: approval+
Assignee: zach → wurblzap
Target Milestone: --- → Bugzilla 2.18
Checking in checksetup.pl;
/cvsroot/mozilla/webtools/bugzilla/checksetup.pl,v  <--  checksetup.pl
new revision: 1.301; previous revision: 1.300
done
Checking in checksetup.pl;
/cvsroot/mozilla/webtools/bugzilla/checksetup.pl,v  <--  checksetup.pl
new revision: 1.289.2.4; previous revision: 1.289.2.3
done
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Is 2.16.x affected by this also?
Does anyone know if we need this for 2.16 as well? (see comment #5)
I think that check was added post 2.16, wasn't it?
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: