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
91249c7f
Commit
91249c7f
authored
Oct 16, 2012
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 799721: PostgreSQL 9.2 requires DBD::Pg 2.19.3
r=glob a=LpSolit
parent
56eee673
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
Pg.pm
Bugzilla/DB/Pg.pm
+5
-4
No files found.
Bugzilla/DB/Pg.pm
View file @
91249c7f
...
...
@@ -195,11 +195,12 @@ sub bz_check_server_version {
my
$self
=
shift
;
my
(
$db
)
=
@_
;
my
$server_version
=
$self
->
SUPER::
bz_check_server_version
(
@_
);
my
(
$major_version
)
=
$server_version
=~
/^(\d+)/
;
# Pg 9 requires DBD::Pg 2.17.2 in order to properly read bytea values.
my
(
$major_version
,
$minor_version
)
=
$server_version
=~
/^0*(\d+)\.0*(\d+)/
;
# Pg 9.0 requires DBD::Pg 2.17.2 in order to properly read bytea values.
# Pg 9.2 requires DBD::Pg 2.19.3 as spclocation no longer exists.
if
(
$major_version
>=
9
)
{
local
$db
->
{
dbd
}
->
{
version
}
=
'2.17.2'
;
local
$db
->
{
name
}
=
$db
->
{
name
}
.
' 9+'
;
local
$db
->
{
dbd
}
->
{
version
}
=
(
$minor_version
>=
2
)
?
'2.19.3'
:
'2.17.2'
;
local
$db
->
{
name
}
=
$db
->
{
name
}
.
" ${major_version}.$minor_version"
;
Bugzilla::DB::
_bz_check_dbd
(
@_
);
}
}
...
...
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