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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Matevz Golob
erp5
Commits
48600cf8
Commit
48600cf8
authored
Feb 19, 2013
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZMySQLDA: fix condition to detect disallowed multiple select schema
parent
c74309cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
product/ZMySQLDA/db.py
product/ZMySQLDA/db.py
+2
-5
No files found.
product/ZMySQLDA/db.py
View file @
48600cf8
...
@@ -383,16 +383,13 @@ class DB(TM):
...
@@ -383,16 +383,13 @@ class DB(TM):
qs
=
"%s LIMIT %d"
%
(
qs
,
max_rows
)
qs
=
"%s LIMIT %d"
%
(
qs
,
max_rows
)
r
=
0
r
=
0
c
=
self
.
_query
(
qs
)
c
=
self
.
_query
(
qs
)
if
desc
is
not
None
:
if
c
:
if
c
and
(
c
.
describe
()
!=
desc
):
if
desc
is
not
None
is
not
c
.
describe
(
):
raise
'Query Error'
,
(
raise
'Query Error'
,
(
'Multiple select schema are not allowed'
'Multiple select schema are not allowed'
)
)
if
c
:
desc
=
c
.
describe
()
desc
=
c
.
describe
()
result
=
c
.
fetch_row
(
max_rows
)
result
=
c
.
fetch_row
(
max_rows
)
else
:
desc
=
None
if
desc
is
None
:
return
(),()
if
desc
is
None
:
return
(),()
...
...
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