List:General Discussion« Previous MessageNext Message »
From:Victoria Reznichenko Date:December 1 2003 7:18pm
Subject:Re: datetime ORDER BY is erred
View as plain text  
Elton <ehd@stripped> wrote:
> 
> Oops, my pasted graphic did not pass; here is what I get:
> 
> mysql> select date_close,aircraft,route from Avail_Legs Order By 
> date_close;
> +---------------------+----------+-----------+
> | date_close          | aircraft | route     |
> +---------------------+----------+-----------+
> | 2003-11-01 14:00:00 | GII      | MSL - FLL |
> | 2003-09-12 17:42:29 | GII      | NYC - MSL |
> | 2003-10-01 11:00:02 | GII      | FLL - MSL |
> +---------------------+----------+-----------+
> 3 rows in set (0.00 sec)
> 
> mysql>
> 
> Which is wrong.
> 

I wasn't able to repeat it on v4.0.16:

mysql> SELECT date_close, aircraft, route FROM Avail_Legs ORDER BY date_close;
+---------------------+----------+-----------+
| date_close          | aircraft | route     |
+---------------------+----------+-----------+
| 2003-09-12 17:42:29 | GII      | NYC - MSL |
| 2003-10-01 11:00:02 | GII      | FLL - MSL |
| 2003-11-01 14:00:00 | GII      | MSL - FLL |
+---------------------+----------+-----------+
3 rows in set (0.00 sec)


> 
> Elton
> 
> On Dec 1, 2003, at 10:51 AM, Elton wrote:
> 
>> I'm using MySQL v4.0.14 that ships with Panther_Server.  I have been 
>> trying to get it to sort datetime fields properly without success; 
>> this is what I get:
>>
>>
>> Is this a known bug?  Is there a workaround?


-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   Victoria.Reznichenko@stripped
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com




Thread
datetime ORDER BY is erredElton1 Dec
  • Re: datetime ORDER BY is erredElton1 Dec
    • RE: datetime ORDER BY is erred in panther_serverDaevid Vincent1 Dec
    • Re: datetime ORDER BY is erredVictoria Reznichenko1 Dec
      • Re: datetime ORDER BY is erredElton1 Dec
        • Re: datetime ORDER BY is erredChris Waskowich2 Dec
          • Re: datetime ORDER BY is erredElton2 Dec
            • Re: datetime ORDER BY is erredElton2 Dec
              • Re: datetime ORDER BY is erredJoakim Ryden2 Dec
                • Re: datetime ORDER BY is erredElton2 Dec
                • Re: datetime ORDER BY is erredElton2 Dec
                  • Re: datetime ORDER BY is erredJoakim Ryden2 Dec
                    • Re: datetime ORDER BY is erredElton2 Dec