gkodinov/kgeorge@magare.gmz
a2afc56f61
Bug #31001 : ORDER BY DESC in InnoDB not working
...
The optimizer sets index traversal in reverse order only if there are
used key parts that are not compared to a constant.
However using the primary key as an ORDER BY suffix rendered the check
incomplete : going in reverse order must still be used even if
all the parts of the secondary key are compared to a constant.
Fixed by relaxing the check and set reverse traversal even when all
the secondary index keyparts are compared to a const.
Also account for the case when all the primary keys are compared to a
constant.
2007-09-14 17:43:14 +03:00
sergefp@pylon.mylan
c54ce038cb
Merge mysql.com:/home/psergey/mysql-5.0-bug30324
...
into mysql.com:/home/psergey/mysql-5.1-bug27927
2007-09-14 15:05:20 +04:00
sergefp@pylon.mylan
15b7d5e8af
Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-5.0-opt
...
into mysql.com:/home/psergey/mysql-5.0-bug30324
2007-09-14 15:00:10 +04:00
sergefp@mysql.com
8a3e6201b3
BUG#30324: Grouping queries with COUNT(DISTINCT bit column) return wrong results
...
- The bug was caused by COUNT(DISTINCT ...) code using Unique object in
a way that assumed that BIT(N) column occupies a contiguous space in
temp_table->record[0] buffer.
- The fix is to make COUNT(DISTINCT ...) code instruct create_tmp_table to
create temporary table with column of type BIGINT, not BIT(N).
2007-09-14 14:53:13 +04:00
sergefp@pylon.mylan
003bb7b994
Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-5.1-opt
...
into mysql.com:/home/psergey/mysql-5.1-bug27927
2007-09-14 14:25:45 +04:00
sergefp@mysql.com
41404ec52e
BUG#27927:Partition pruning not optimal with TO_DAYS and YEAR functions
...
- Introduced val_int_endpoint() function which converts between func
argument intervals and func value intervals for monotonic functions.
- Made partition interval analyzer use part_expr->val_int_endpoint()
to check if the edge values should be included.
2007-09-14 14:18:42 +04:00
istruewing@stella.local
a14e4f0ac6
Merge stella.local:/home/mydev/mysql-5.0-axmrg
...
into stella.local:/home/mydev/mysql-5.1-axmrg
2007-09-14 12:00:34 +02:00
istruewing@stella.local
a34a2e3e6d
Merge stella.local:/home/mydev/mysql-5.1-amain
...
into stella.local:/home/mydev/mysql-5.1-axmrg
2007-09-14 11:59:35 +02:00
istruewing@stella.local
d704f90c96
Merge stella.local:/home/mydev/mysql-5.1-ateam
...
into stella.local:/home/mydev/mysql-5.1-axmrg
2007-09-14 11:40:03 +02:00
tomas@whalegate.ndb.mysql.com
0f36ce8f86
Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.1
...
into whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb-merge
2007-09-14 11:13:00 +02:00
tomas@whalegate.ndb.mysql.com
758999357f
Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
...
into whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb-merge
2007-09-14 11:11:05 +02:00
tomas@whalegate.ndb.mysql.com
7cf77f49d3
Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.0
...
into whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-ndb-merge
2007-09-14 11:08:55 +02:00
tomas@whalegate.ndb.mysql.com
965124b4a5
Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-ndb
...
into whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-ndb-merge
2007-09-14 11:05:38 +02:00
tomas@whalegate.ndb.mysql.com
54adc4ee80
Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-ndb
...
into whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
2007-09-14 11:04:24 +02:00
istruewing@stella.local
62d79a1019
Merge stella.local:/home/mydev/mysql-4.1-axmrg
...
into stella.local:/home/mydev/mysql-5.0-axmrg
2007-09-14 10:56:16 +02:00
istruewing@stella.local
cbc48e51d0
Merge stella.local:/home/mydev/mysql-5.0-amain
...
into stella.local:/home/mydev/mysql-5.0-axmrg
2007-09-14 10:55:48 +02:00
istruewing@stella.local
b321fb953d
Merge stella.local:/home/mydev/mysql-5.0-ateam
...
into stella.local:/home/mydev/mysql-5.0-axmrg
2007-09-14 10:54:56 +02:00
gshchepa@devsrv-b.mysql.com
a9987ffde4
Merge devsrv-b.mysql.com:/data0/gshchepa/mysql-5.0-opt
...
into devsrv-b.mysql.com:/data0/gshchepa/mysql-5.1-opt
2007-09-14 10:37:42 +02:00
gshchepa@devsrv-b.mysql.com
e6e56ccc01
Merge devsrv-b.mysql.com:/users/gshchepa/mysql-5.0-opt
...
into devsrv-b.mysql.com:/data0/gshchepa/mysql-5.0-opt
2007-09-14 10:11:51 +02:00
gshchepa/uchum@gleb.loc
72e36e0aa3
Merge gshchepa@bk-internal.mysql.com:/users/gshchepa/mysql-5.0-opt
...
into gleb.loc:/home/uchum/work/bk/5.0-opt-27695
2007-09-14 13:11:50 +05:00
istruewing@stella.local
de7e0c9e73
Merge stella.local:/home/mydev/mysql-4.1-amain
...
into stella.local:/home/mydev/mysql-4.1-axmrg
2007-09-14 10:10:29 +02:00
gshchepa/uchum@gleb.loc
0b7e4b4dde
Merge gleb.loc:/home/uchum/work/bk/5.0-opt
...
into gleb.loc:/home/uchum/work/bk/5.1-opt
2007-09-14 12:35:06 +05:00
gshchepa/uchum@gleb.loc
aac756e4ff
Merge gleb.loc:/home/uchum/work/bk/5.1
...
into gleb.loc:/home/uchum/work/bk/5.1-opt
2007-09-14 12:18:48 +05:00
gshchepa/uchum@gleb.loc
7284a865df
Merge gleb.loc:/home/uchum/work/bk/5.0
...
into gleb.loc:/home/uchum/work/bk/5.0-opt
2007-09-14 12:16:19 +05:00
joerg@trift2.
b0fb8aa374
Merge trift2.:/MySQL/M50/tmp-5.0
...
into trift2.:/MySQL/M51/tmp-5.1
2007-09-13 23:56:48 +02:00
joerg@trift2.
6a67761bcc
Merge trift2.:/MySQL/M51/push-5.1
...
into trift2.:/MySQL/M51/tmp-5.1
2007-09-13 23:54:22 +02:00
joerg@trift2.
1dc3246fe3
Merge trift2.:/MySQL/M50/push-5.0
...
into trift2.:/MySQL/M50/tmp-5.0
2007-09-13 23:42:17 +02:00
gshchepa/uchum@gleb.loc
e4eadcfbdd
Fixed bug #27695 .
...
Declaring an all space column name in the SELECT FROM DUAL or in a view
leads to misleading warning message:
"Leading spaces are removed from name ' '".
The Item::set_name method has been modified to raise warnings like
"Name ' ' has become ''" in case of the truncation of an all
space identifier to an empty string identifier instead of the
"Leading spaces are removed from name ' '" warning message.
2007-09-13 18:41:50 +05:00
svoj@mysql.com/june.mysql.com
187b01a45f
BUG#30583 - Partition on DOUBLE key + INNODB + count(*) == crash
...
Issuing SELECT COUNT(*) against partitioned InnoDB table may cause
server crash.
Fixed that not all required fields were included into read_set.
2007-09-13 18:33:40 +05:00
svoj@june.mysql.com
ac29e21e0b
Merge mysql.com:/home/svoj/devel/mysql/BUG30590/mysql-5.0-engines
...
into mysql.com:/home/svoj/devel/mysql/BUG30590/mysql-5.1-engines
2007-09-13 17:12:46 +05:00
svoj@june.mysql.com
6a04238e41
Merge mysql.com:/home/svoj/devel/mysql/BUG30590/mysql-4.1-engines
...
into mysql.com:/home/svoj/devel/mysql/BUG30590/mysql-5.0-engines
2007-09-13 16:42:23 +05:00
svoj@mysql.com/june.mysql.com
84a9e656e0
BUG#30590 - delete from memory table with composite btree primary key
...
DELETE query against memory table with btree index may remove
not all matching rows. This happens only when DELETE uses
index read method to find matching rows. E.g. for queries
like DELETE FROM t1 WHERE a=1.
Fixed by reverting fix for BUG9719 and applying proper solution.
2007-09-13 15:39:16 +05:00
gshchepa/uchum@gleb.loc
a9dd53abd6
Merge gleb.loc:/home/uchum/work/bk/5.0-opt
...
into gleb.loc:/home/uchum/work/bk/5.1-opt
2007-09-13 15:05:54 +05:00
mskold/marty@linux.site
f2159e2d21
Merge mskold@bk-internal.mysql.com:/home/bk/mysql-5.0-ndb
...
into mysql.com:/windows/Linux_space/MySQL/mysql-5.0-ndb
2007-09-13 10:35:11 +02:00
mskold/marty@linux.site
d4e84e13b0
Merge mskold@bk-internal.mysql.com:/home/bk/mysql-5.1-ndb
...
into mysql.com:/windows/Linux_space/MySQL/mysql-5.1-new-ndb
2007-09-13 10:06:42 +02:00
mskold/marty@linux.site
2ea6d3d680
Merge mysql.com:/windows/Linux_space/MySQL/mysql-5.0-ndb
...
into mysql.com:/windows/Linux_space/MySQL/mysql-5.1-new-ndb
2007-09-13 10:00:14 +02:00
mskold/marty@mysql.com/linux.site
44b6c2edad
bug#27494 An invalid subselect crashes mysql server: Added check for missing arguments
2007-09-13 09:47:21 +02:00
gshchepa/uchum@gleb.loc
2e7306d503
Merge gshchepa@bk-internal.mysql.com:/home/bk/mysql-5.0-opt
...
into gleb.loc:/home/uchum/work/bk/5.0-opt
2007-09-13 11:48:58 +05:00
gshchepa/uchum@gleb.loc
2a3facc3de
Merge gleb.loc:/home/uchum/work/bk/5.0-opt
...
into gleb.loc:/home/uchum/work/bk/5.1-opt
2007-09-13 11:31:45 +05:00
gshchepa/uchum@gleb.loc
321c172e95
sql_view.cc:
...
Post-merge fix.
2007-09-13 02:09:29 +05:00
gshchepa/uchum@gleb.loc
bd4fd0473c
Merge gleb.loc:/home/uchum/work/bk/5.1
...
into gleb.loc:/home/uchum/work/bk/5.1-opt
2007-09-13 00:44:50 +05:00
gshchepa/uchum@gleb.loc
ff042427cf
Merge gleb.loc:/home/uchum/work/bk/5.0
...
into gleb.loc:/home/uchum/work/bk/5.0-opt
2007-09-12 23:41:35 +05:00
sergefp@mysql.com
1ff0caf49d
Better wording in comments
2007-09-12 18:13:19 +04:00
tomas@whalegate.ndb.mysql.com
5b0e532db3
Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-ndb-merge
...
into whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb-merge
2007-09-12 14:03:21 +02:00
tomas@whalegate.ndb.mysql.com
59e502dc2b
Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
...
into whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb-merge
2007-09-12 14:02:27 +02:00
tomas@whalegate.ndb.mysql.com
df552c310d
Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-ndb
...
into whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-ndb-merge
2007-09-12 14:01:51 +02:00
tomas@whalegate.ndb.mysql.com
f0f025f91b
Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-ndb-bj
...
into whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb-bj
2007-09-12 13:58:03 +02:00
tomas@whalegate.ndb.mysql.com
63648db422
Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
...
into whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb-bj
2007-09-12 13:55:45 +02:00
tomas@whalegate.ndb.mysql.com
83eed4d876
Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-ndb
...
into whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-ndb-bj
2007-09-12 13:55:22 +02:00
tomas@whalegate.ndb.mysql.com
461a3dccac
BUG#23354 revert
2007-09-12 13:53:32 +02:00