Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_workflow
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenjie.zheng
erp5_workflow
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
Hide 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:
if
'@'
in
db_host
:
db
,
host
=
split
(
db_host
,
'@'
,
1
)
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
)
kwargs
[
'port'
]
=
int
(
port
)
kwargs
[
'host'
]
=
host
...
...
product/ZMySQLDDA/db.py
View file @
d7ac92dd
...
...
@@ -222,7 +222,11 @@ class ThreadedDeferredDB:
if
'@'
in
db_host
:
db
,
host
=
split
(
db_host
,
'@'
,
1
)
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
)
kwargs
[
'port'
]
=
int
(
port
)
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