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
5a68f099
Commit
5a68f099
authored
Aug 21, 2012
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 783786: PostgreSQL databases can be created with the wrong encoding
r=dkl a=LpSolit
parent
d2c7ad18
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
Pg.pm
Bugzilla/DB/Schema/Pg.pm
+10
-0
No files found.
Bugzilla/DB/Schema/Pg.pm
View file @
5a68f099
...
...
@@ -74,6 +74,16 @@ sub _initialize {
}
#eosub--_initialize
#--------------------------------------------------------------------
sub
get_create_database_sql
{
my
(
$self
,
$name
)
=
@_
;
# We only create as utf8 if we have no params (meaning we're doing
# a new installation) or if the utf8 param is on.
my
$create_utf8
=
Bugzilla
->
params
->
{
'utf8'
}
||
!
defined
Bugzilla
->
params
->
{
'utf8'
};
my
$charset
=
$create_utf8
?
"ENCODING 'UTF8' TEMPLATE template0"
:
''
;
return
(
"CREATE DATABASE $name $charset"
);
}
sub
get_rename_column_ddl
{
my
(
$self
,
$table
,
$old_name
,
$new_name
)
=
@_
;
if
(
lc
(
$old_name
)
eq
lc
(
$new_name
))
{
...
...
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