Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5_fork
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
Eteri
erp5_fork
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
Hide 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):
def
_query
(
self
,
query
,
allow_reconnect
=
False
):
"""
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:
- It has not just tried to reconnect (ie, this function will not
attemp to connect twice per call).
- This con
ection is not transaction
nal and has set not MySQL locks,
attemp
t
to connect twice per call).
- This con
nection is not transactio
nal and has set not MySQL locks,
because they are bound to the connection. This check can be
overridden by passing allow_reconnect with True value.
"""
...
...
@@ -492,7 +492,7 @@ class DB(TM):
if m is None:
return
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).
with (nested if src__ else self.lock)():
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