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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
preetwinder
erp5
Commits
bed64f31
Commit
bed64f31
authored
Aug 25, 2017
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typos
parent
5dfb6d9c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
product/ZMySQLDA/db.py
product/ZMySQLDA/db.py
+4
-4
No files found.
product/ZMySQLDA/db.py
View file @
bed64f31
...
@@ -313,11 +313,11 @@ class DB(TM):
...
@@ -313,11 +313,11 @@ class DB(TM):
def
_query
(
self
,
query
,
allow_reconnect
=
False
):
def
_query
(
self
,
query
,
allow_reconnect
=
False
):
"""
"""
Send a query to MySQL server.
Send a query to MySQL server.
It reconnects automaticaly if needed and the following conditions are
It reconnects automatical
l
y if needed and the following conditions are
met:
met:
- It has not just tried to reconnect (ie, this function will not
- It has not just tried to reconnect (ie, this function will not
attemp to connect twice per call).
attemp
t
to connect twice per call).
- This con
ection is not transaction
nal and has set not MySQL locks,
- This con
nection is not transactio
nal and has set not MySQL locks,
because they are bound to the connection. This check can be
because they are bound to the connection. This check can be
overridden by passing allow_reconnect with True value.
overridden by passing allow_reconnect with True value.
"""
"""
...
@@ -492,7 +492,7 @@ class DB(TM):
...
@@ -492,7 +492,7 @@ class DB(TM):
if m is None:
if m is None:
return
return
name = m.group(2)
name = m.group(2)
# Lock automaticaly unless src__ is True, because the caller may have
# Lock automatical
l
y unless src__ is True, because the caller may have
# already done it (in case that it plans to execute the returned query).
# already done it (in case that it plans to execute the returned query).
with (nested if src__ else self.lock)():
with (nested if src__ else self.lock)():
try:
try:
...
...
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