Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Sven Franck
erp5
Commits
d22b6502
Commit
d22b6502
authored
8 years ago
by
Julien Muchembled
Browse files
Options
Download
Email Patches
Plain Diff
catalog: for sort_on parameter, recognize 'float' to CAST AS DECIMAL
parent
02ccc5ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
product/ZSQLCatalog/SQLCatalog.py
product/ZSQLCatalog/SQLCatalog.py
+2
-0
No files found.
product/ZSQLCatalog/SQLCatalog.py
View file @
d22b6502
...
...
@@ -2406,6 +2406,8 @@ class Catalog(Folder,
if
len
(
item
)
>
2
:
if
item
[
2
]
==
'int'
:
item
[
2
]
=
'SIGNED'
elif
item
[
2
]
==
'float'
:
item
[
2
]
=
'DECIMAL'
append
(
item
)
elif
order_by_expression
is
not
None
:
if
not
isinstance
(
order_by_expression
,
basestring
):
...
...
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