Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
b93e6fe8
Commit
b93e6fe8
authored
Dec 17, 2014
by
Matt Selsky
Committed by
Gervase Markham
Dec 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 557536: checksetup.pl fails on ALTER DATABASE if database name contains hyphen. r=gerv, a=glob.
parent
fe5bd2c4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
Mysql.pm
Bugzilla/DB/Mysql.pm
+1
-1
Schema.pm
Bugzilla/DB/Schema.pm
+1
-1
Mysql.pm
Bugzilla/DB/Schema/Mysql.pm
+1
-1
Pg.pm
Bugzilla/DB/Schema/Pg.pm
+1
-1
No files found.
Bugzilla/DB/Mysql.pm
View file @
b93e6fe8
...
@@ -839,7 +839,7 @@ sub _fix_defaults {
...
@@ -839,7 +839,7 @@ sub _fix_defaults {
sub
_alter_db_charset_to_utf8
{
sub
_alter_db_charset_to_utf8
{
my
$self
=
shift
;
my
$self
=
shift
;
my
$db_name
=
Bugzilla
->
localconfig
->
{
db_name
};
my
$db_name
=
Bugzilla
->
localconfig
->
{
db_name
};
$self
->
do
(
"ALTER DATABASE
$db_name
CHARACTER SET utf8"
);
$self
->
do
(
"ALTER DATABASE
`$db_name`
CHARACTER SET utf8"
);
}
}
sub
bz_db_is_utf8
{
sub
bz_db_is_utf8
{
...
...
Bugzilla/DB/Schema.pm
View file @
b93e6fe8
...
@@ -2205,7 +2205,7 @@ sub get_table_indexes_abstract {
...
@@ -2205,7 +2205,7 @@ sub get_table_indexes_abstract {
sub
get_create_database_sql
{
sub
get_create_database_sql
{
my
(
$self
,
$name
)
=
@_
;
my
(
$self
,
$name
)
=
@_
;
return
(
"CREATE DATABASE
$name
"
);
return
(
"CREATE DATABASE
\"$name\"
"
);
}
}
sub
get_table_ddl
{
sub
get_table_ddl
{
...
...
Bugzilla/DB/Schema/Mysql.pm
View file @
b93e6fe8
...
@@ -153,7 +153,7 @@ sub get_create_database_sql {
...
@@ -153,7 +153,7 @@ sub get_create_database_sql {
my
$create_utf8
=
Bugzilla
->
params
->
{
'utf8'
}
my
$create_utf8
=
Bugzilla
->
params
->
{
'utf8'
}
||
!
defined
Bugzilla
->
params
->
{
'utf8'
};
||
!
defined
Bugzilla
->
params
->
{
'utf8'
};
my
$charset
=
$create_utf8
?
"CHARACTER SET utf8"
:
''
;
my
$charset
=
$create_utf8
?
"CHARACTER SET utf8"
:
''
;
return
(
"CREATE DATABASE
$name
$charset"
);
return
(
"CREATE DATABASE
`$name`
$charset"
);
}
}
# MySQL has a simpler ALTER TABLE syntax than ANSI.
# MySQL has a simpler ALTER TABLE syntax than ANSI.
...
...
Bugzilla/DB/Schema/Pg.pm
View file @
b93e6fe8
...
@@ -84,7 +84,7 @@ sub get_create_database_sql {
...
@@ -84,7 +84,7 @@ sub get_create_database_sql {
my
$create_utf8
=
Bugzilla
->
params
->
{
'utf8'
}
my
$create_utf8
=
Bugzilla
->
params
->
{
'utf8'
}
||
!
defined
Bugzilla
->
params
->
{
'utf8'
};
||
!
defined
Bugzilla
->
params
->
{
'utf8'
};
my
$charset
=
$create_utf8
?
"ENCODING 'UTF8' TEMPLATE template0"
:
''
;
my
$charset
=
$create_utf8
?
"ENCODING 'UTF8' TEMPLATE template0"
:
''
;
return
(
"CREATE DATABASE
$name
$charset"
);
return
(
"CREATE DATABASE
\"$name\"
$charset"
);
}
}
sub
get_rename_column_ddl
{
sub
get_rename_column_ddl
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment