Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
erp5
Commits
d7ac92dd
Commit
d7ac92dd
authored
Sep 19, 2012
by
Romain Courteaud
Committed by
Vincent Pelletier
Sep 19, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add IPv6 support to MySQL connector.
parent
cfe1aaf3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
product/ZMySQLDA/db.py
product/ZMySQLDA/db.py
+5
-1
product/ZMySQLDDA/db.py
product/ZMySQLDDA/db.py
+5
-1
No files found.
product/ZMySQLDA/db.py
View file @
d7ac92dd
...
@@ -225,7 +225,11 @@ class ThreadedDB:
...
@@ -225,7 +225,11 @@ class ThreadedDB:
if
'@'
in
db_host
:
if
'@'
in
db_host
:
db
,
host
=
split
(
db_host
,
'@'
,
1
)
db
,
host
=
split
(
db_host
,
'@'
,
1
)
kwargs
[
'db'
]
=
db
kwargs
[
'db'
]
=
db
if
':'
in
host
:
if
host
.
startswith
(
'['
):
host
,
port
=
split
(
host
[
1
:],
']'
,
1
)
if
port
.
startswith
(
':'
):
kwargs
[
'port'
]
=
int
(
port
[
1
:])
elif
':'
in
host
:
host
,
port
=
split
(
host
,
':'
,
1
)
host
,
port
=
split
(
host
,
':'
,
1
)
kwargs
[
'port'
]
=
int
(
port
)
kwargs
[
'port'
]
=
int
(
port
)
kwargs
[
'host'
]
=
host
kwargs
[
'host'
]
=
host
...
...
product/ZMySQLDDA/db.py
View file @
d7ac92dd
...
@@ -222,7 +222,11 @@ class ThreadedDeferredDB:
...
@@ -222,7 +222,11 @@ class ThreadedDeferredDB:
if
'@'
in
db_host
:
if
'@'
in
db_host
:
db
,
host
=
split
(
db_host
,
'@'
,
1
)
db
,
host
=
split
(
db_host
,
'@'
,
1
)
kwargs
[
'db'
]
=
db
kwargs
[
'db'
]
=
db
if
':'
in
host
:
if
host
.
startswith
(
'['
):
host
,
port
=
split
(
host
[
1
:],
']'
,
1
)
if
port
.
startswith
(
':'
):
kwargs
[
'port'
]
=
int
(
port
[
1
:])
elif
':'
in
host
:
host
,
port
=
split
(
host
,
':'
,
1
)
host
,
port
=
split
(
host
,
':'
,
1
)
kwargs
[
'port'
]
=
int
(
port
)
kwargs
[
'port'
]
=
int
(
port
)
kwargs
[
'host'
]
=
host
kwargs
[
'host'
]
=
host
...
...
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