Bug #23457 | a problem about a partition table | ||
---|---|---|---|
Submitted: | 19 Oct 2006 8:41 | Modified: | 21 Oct 2006 2:42 |
Reporter: | fu yang | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 5.1.11 | OS: | Windows (windows) |
Assigned to: | CPU Architecture: | Any | |
Tags: | partition table, primary key, query |
[19 Oct 2006 8:41]
fu yang
[19 Oct 2006 10:33]
Hartmut Holzgraefe
looks as if your report was truncated somehow, the final SELECT statement ends after the ORDER keyword could you check the report and add the missing pieces?
[20 Oct 2006 2:41]
fu yang
select * from table1 where cTime between '2006-04-08 00:00:00' and '2006-04-10 23:59:59' order by cTime desc,dataId desc;
[21 Oct 2006 2:42]
MySQL Verification Team
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release. If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at http://dev.mysql.com/doc/en/installing-source.html mysql> select * from table1 where cTime between '2006-04-08 00:00:00' and '2006-04-10 '> 23:59:59' order by cTime desc,dataId desc; +--------+-----------+---------------------+------------+-------------+-------------+----------------+ | dataId | deviceNum | cTime | account | userName | password | sendAddress | +--------+-----------+---------------------+------------+-------------+-------------+----------------+ | 4 | 1201 | 2006-04-08 00:13:10 | account1 | userName1 | password1 | sendAddress1 | | 3 | 1201 | 2006-04-08 00:12:10 | account1 | userName1 | password1 | sendAddress1 | | 2 | 1201 | 2006-04-08 00:11:10 | account1 | userName1 | password1 | sendAddress1 | | 1 | 1201 | 2006-04-08 00:10:10 | account1 | userName1 | password1 | sendAddress1 | | 8 | 1201 | 2006-04-09 00:13:10 | account91 | userName91 | password91 | sendAddress91 | | 7 | 1201 | 2006-04-09 00:12:10 | account91 | userName91 | password91 | sendAddress91 | | 6 | 1201 | 2006-04-09 00:11:10 | account91 | userName91 | password91 | sendAddress91 | | 5 | 1201 | 2006-04-09 00:10:10 | account91 | userName91 | password91 | sendAddress91 | | 12 | 1201 | 2006-04-10 00:13:10 | account101 | userName101 | password101 | sendAddress101 | | 11 | 1201 | 2006-04-10 00:12:10 | account101 | userName101 | password101 | sendAddress101 | | 10 | 1201 | 2006-04-10 00:11:10 | account101 | userName101 | password101 | sendAddress101 | | 9 | 1201 | 2006-04-10 00:10:10 | account101 | userName101 | password101 | sendAddress101 | +--------+-----------+---------------------+------------+-------------+-------------+----------------+ 12 rows in set (0.09 sec) mysql> select version(); +-------------+ | version() | +-------------+ | 5.1.11-beta | +-------------+ 1 row in set (0.00 sec) ------------------------------------------------------------------------------------------- mysql> select * from table1 where cTime between '2006-04-08 00:00:00' and '2006-04-10 '> 23:59:59' order by cTime desc,dataId desc; +--------+-----------+---------------------+------------+-------------+-------------+----------------+ | dataId | deviceNum | cTime | account | userName | password | sendAddress | +--------+-----------+---------------------+------------+-------------+-------------+----------------+ | 12 | 1201 | 2006-04-10 00:13:10 | account101 | userName101 | password101 | sendAddress101 | | 11 | 1201 | 2006-04-10 00:12:10 | account101 | userName101 | password101 | sendAddress101 | | 10 | 1201 | 2006-04-10 00:11:10 | account101 | userName101 | password101 | sendAddress101 | | 9 | 1201 | 2006-04-10 00:10:10 | account101 | userName101 | password101 | sendAddress101 | | 8 | 1201 | 2006-04-09 00:13:10 | account91 | userName91 | password91 | sendAddress91 | | 7 | 1201 | 2006-04-09 00:12:10 | account91 | userName91 | password91 | sendAddress91 | | 6 | 1201 | 2006-04-09 00:11:10 | account91 | userName91 | password91 | sendAddress91 | | 5 | 1201 | 2006-04-09 00:10:10 | account91 | userName91 | password91 | sendAddress91 | | 4 | 1201 | 2006-04-08 00:13:10 | account1 | userName1 | password1 | sendAddress1 | | 3 | 1201 | 2006-04-08 00:12:10 | account1 | userName1 | password1 | sendAddress1 | | 2 | 1201 | 2006-04-08 00:11:10 | account1 | userName1 | password1 | sendAddress1 | | 1 | 1201 | 2006-04-08 00:10:10 | account1 | userName1 | password1 | sendAddress1 | +--------+-----------+---------------------+------------+-------------+-------------+----------------+ 12 rows in set (0.03 sec) mysql> select version(); +----------------+ | version() | +----------------+ | 5.1.13-beta-nt | +----------------+ 1 row in set (0.00 sec) mysql>