summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/framework
diff options
context:
space:
mode:
authorJeremy Kersten <jke@odoo.com>2016-07-01 10:22:52 +0200
committerNicolas Lempereur <nle@odoo.com>2016-08-29 17:08:25 +0200
commitf1a331850d5f3383cd1ad2c765dd9e8ce3565b61 (patch)
tree7ee33f74f74429eeaf2d094711f36a0513b63703 /addons/web/static/src/js/framework
parent671fa0c7d44dc34b270a995cafe56515a66b6758 (diff)
[FIX] website_sale: fix order for the pager in front end.
In psql, use LIMIT and OFFSET together without a fully specified and uniq sort order will generate unexpected behaviour. Eg: > id id_dept name > ------------------- > 1 1 Tom > 2 1 Mike > 3 2 Meggie > 4 2 Marge > 5 3 Bart > 6 3 Lisa > using LIMITed selects like: > SELECT * FROM employee ORDER BY id_dept LIMIT 3 > SELECT * FROM employee ORDER BY id_dept LIMIT 3 OFFSET 3 > SELECT * FROM employee ORDER BY id_dept LIMIT 3 OFFSET 6 > You can have some result missings from the 3 requests, and others duplicated. > Because id_dept is not a uniq order. opw-686639 note: backport of saas-12 4dce8616
Diffstat (limited to 'addons/web/static/src/js/framework')
0 files changed, 0 insertions, 0 deletions