Bug #31269 IFNULL don't work on order by
| Submitted: | 28 Sep 2007 5:06 | Modified: | 29 Mar 2011 19:00 |
|---|---|---|---|
| Reporter: | Roberto Spadim (Basic Quality Contributor) | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server | Severity: | S2 (Serious) |
| Version: | 5.1.20 | OS: | Any |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | qc | ||
[28 Sep 2007 5:06]
Roberto Spadim
[28 Sep 2007 5:08]
Roberto Spadim
SQL_MODE: PIPES_AS_CONCAT,ALLOW_INVALID_DATES
[28 Sep 2007 9:25]
Sveta Smirnova
Thank you for the report. Please also provide dump of tables cfop_itens and estoque_itens
[3 Oct 2007 17:15]
Roberto Spadim
Files appended
[10 Oct 2007 8:13]
Sveta Smirnova
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://dev.mysql.com/doc/ and the instructions on how to report a bug at http://bugs.mysql.com/how-to-report.php In your query: 'ORDER BY a.cfop_id,cfop_numero DESC', so first data sorted by a.cfop_id in default ascending order and only then by cfop_numero. In your data for cfop_numero which is equal '0' always corresponds cfop_id equal '0' too. So order is correct.
[29 Mar 2011 19:00]
Roberto Spadim
ok closed
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.041 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.