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
Xiaowu Zhang
erp5
Commits
6586619e
Commit
6586619e
authored
Jun 01, 2022
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "ZMySQLDA/db.py: show error sql in log"
This reverts commit
1c2ab1ec
.
parent
a85c3162
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
product/ZMySQLDA/db.py
product/ZMySQLDA/db.py
+2
-4
No files found.
product/ZMySQLDA/db.py
View file @
6586619e
...
@@ -395,10 +395,10 @@ class DB(TM):
...
@@ -395,10 +395,10 @@ class DB(TM):
self
.
_forceReconnection
()
self
.
_forceReconnection
()
self
.
db
.
query
(
query
)
self
.
db
.
query
(
query
)
else
:
else
:
LOG
(
'
Operation
ZMySQLDA'
,
ERROR
,
'query failed: %s'
%
(
query
,))
LOG
(
'ZMySQLDA'
,
ERROR
,
'query failed: %s'
%
(
query
,))
raise
raise
except
ProgrammingError
:
except
ProgrammingError
:
LOG
(
'
Programming
ZMySQLDA'
,
ERROR
,
'query failed: %s'
%
(
query
,))
LOG
(
'ZMySQLDA'
,
ERROR
,
'query failed: %s'
%
(
query
,))
raise
raise
try
:
try
:
return
self
.
db
.
store_result
()
return
self
.
db
.
store_result
()
...
@@ -432,8 +432,6 @@ class DB(TM):
...
@@ -432,8 +432,6 @@ class DB(TM):
qs
=
"SET STATEMENT %s FOR SELECT %s"
%
(
statement
,
select
)
qs
=
"SET STATEMENT %s FOR SELECT %s"
%
(
statement
,
select
)
if
max_rows
:
if
max_rows
:
qs
=
"%s LIMIT %d"
%
(
qs
,
max_rows
)
qs
=
"%s LIMIT %d"
%
(
qs
,
max_rows
)
if
';'
in
qs
:
LOG
(
'query with ;'
,
ERROR
,
query_string
)
c
=
self
.
_query
(
qs
)
c
=
self
.
_query
(
qs
)
if
c
:
if
c
:
if
desc
is
not
None
is
not
c
.
describe
():
if
desc
is
not
None
is
not
c
.
describe
():
...
...
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