Dear friends,
Maybe the error is on datatype convertion of xHarbour, for fields like TIMESTAMP!
If you make a cast convertion, works!
reg_id = numeric, auto_increment, not null
reg_data = timestamp, notnull, default '0000-00-00 00:00:00'
reg_update = timestamp, notnull, default '0000-00-00 00:00:00'
Error:
SELECT reg_id, reg_data, reg_update FROM mytable ORDER BY reg_update DESC
When the field is filled with any value like '2009-01-27 16:42:25', the ADO return this value like this 2009-01-27, as date
Ok:
SELECT reg_id, CAST( reg_data AS CHARACTER ) AS reg_data, CAST( reg_update AS CHARACTER ) AS reg_update FROM mytable ORDER BY reg_update DESC
In this case, any value of field return a value like this '2009-01-27 16:42:25' as string (because typecast)
And xBrowse do not show the complete value of field... only the data part!