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
12 years ago
by
Romain Courteaud
Committed by
Vincent Pelletier
12 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add IPv6 support to MySQL connector.
parent
cfe1aaf3
master
add-desc-sort-keyword
better-model-behaviour
business-application-on-all-module
clean-payroll
clean-searchable-property
cmfactivity-serialization-tag-memoization
dsn-annual-tax
dsn-dev
dsn-p18v01
dsn-phase3
erp5_free_subscription
external-identifier
fix-support-request
fix-upgrader
fix-upgrader-20170523
generic-payroll
head-office
improve-comparaison
improve-erp5_corporate_identity
indentation-preference
mime-post
mime-post-20180326
nicolas-bt-export-property
nicolas-generic-dsn
nicolas-ledger-merge-request
nicolas-ledgers
nicolas-payroll
nicolas-payroll-old
nicolas-upgrader
officejs-bookmark
officejs-bookmark-app
open-source
pdf-gadget-editor
price-per-quantity-per-slice
recovery-form
recovery-form-pre-merge
reindex-skin
renderjs-credential
renderjs-display-erp5-action
renderjs-ui-minimal-theme
rjs
setter-type-security-bak
shop-box
shop-box-for-merge
shop-box-rebased
strict_catalog
temp
test_nicolas
testnode_software_link
testnode_software_link_backup
timezones
tristan
vivekpab_erp5webrenderjs_layoutconfig
vivekpab_jabberclient
vivekpab_renderjs_interfaces
void-dsn
No related merge requests found
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:
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
...
...
This diff is collapsed.
Click to expand it.
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
...
...
This diff is collapsed.
Click to expand it.
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