[Vtigercrm-commits] [vtiger development] #6379: ORDER BY DESC does not work in Vtiger WebServices
vtiger development
vtiger-tickets at trac.vtiger.com
Tue Nov 3 23:06:41 EST 2009
#6379: ORDER BY DESC does not work in Vtiger WebServices
------------------------------------------------+---------------------------
Reporter: davidv.net | Owner: developer
Type: defect | Status: new
Priority: critical | Milestone: 5.2.0
Component: vtwsclib | Version: 5.1.0
Keywords: ORDER BY DESC WebServices vtwsclib |
------------------------------------------------+---------------------------
The following query works perfectly :
$query = "SELECT * FROM mds_computer
WHERE id > '33x39996'
AND data_server_ip = '".$backup_server."'
ORDER BY computername
LIMIT 10
";
This one also works but the problem is that the DESC is not taken in
account. So the query retrieves data in the same order :
$query = "SELECT * FROM mds_computer
WHERE id > '33x39996'
AND data_server_ip = '".$backup_server."'
ORDER BY computername DESC
LIMIT 10
";
In the file include/WebservicesVTQL_Lexer.php.php line 133 I can see that
DESC is supported.
But in include/Webservices/VTQL_Parser.php line 307 (and also line 150)
DESC is not used.
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/6379>
vtiger development <http://trac.vtiger.com/>
vtigerCRM
More information about the vtigercrm-commits
mailing list