mhansson/martin@linux-st28.site
99ac24679d
Bug#24791: Union with AVG-groups generates wrong results
...
Patch appled after doing a pull from the team tree. Additional tests had to be
fixed
2007-03-22 14:58:43 +01:00
mhansson/martin@linux-st28.site
cdf80a269b
Merge mhansson@bk-internal:/home/bk/mysql-5.0-opt
...
into linux-st28.site:/home/martin/mysql/src/5.0o-bug24791
2007-03-22 13:37:27 +01:00
tomas@whalegate.ndb.mysql.com
424f82d39a
Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-telco-gca
...
into whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
2007-03-22 13:17:40 +01:00
tomas@whalegate.ndb.mysql.com
f7e4428438
BUG#27044 bug fix of 27320 fixes this, added test case
2007-03-22 13:17:08 +01:00
jamppa@bk-internal.mysql.com
d2838b5abe
Merge bk-internal.mysql.com:/data0/bk/mysql-5.1
...
into bk-internal.mysql.com:/data0/bk/mysql-5.1-marvel
2007-03-22 13:14:52 +01:00
mhansson/martin@linux-st28.site
749976ee5e
Merge mhansson@bk-internal:/home/bk/mysql-5.0-opt
...
into linux-st28.site:/home/martin/mysql/src/5.0o-bug24791
2007-03-22 10:58:16 +01:00
mhansson/martin@linux-st28.site
50077b6db9
Bug #24791 : Union with AVG-groups generates wrong results
...
The problem in this bug is when we create temporary tables. When
temporary tables are created for unions, there is some
inferrence being carried out regarding the type of the column.
Whenever this column type is inferred to be REAL (i.e. FLOAT or
DOUBLE), MySQL will always try to maintain exact precision, and
if that is not possible (there are hardware limits, since FLOAT
and DOUBLE are stored as approximate values) will switch to
using approximate values. The problem here is that at this point
the information about number of significant digits is not
available. Furthermore, the number of significant digits should
be increased for the AVG function, however, this was not properly
handled. There are 4 parts to the problem:
#1 : DOUBLE and FLOAT fields don't display their proper display
lengths in max_display_length(). This is hard-coded as 53 for
DOUBLE and 24 for FLOAT. Now changed to instead return the
field_length.
#2 : Type holders for temporary tables do not preserve the
max_length of the Item's from which they are created, and is
instead reverted to the 53 and 24 from above. This causes
*all* fields to get non-fixed significant digits.
#3 : AVG function does not update max_length (display length)
when updating number of decimals.
#4 : The function that switches to non-fixed number of
significant digits should use DBL_DIG + 2 or FLT_DIG + 2 as
cut-off values (Since fixed precision does not use the 'e'
notation)
Of these points, #1 is the controversial one, but this
change is preferred and has been cleared with Monty. The
function causes quite a few unit tests to blow up and they had
to b changed, but each one is annotated and motivated. We
frequently see the magical 53 and 24 give way to more relevant
numbers.
2007-03-22 10:56:47 +01:00
tomas@whalegate.ndb.mysql.com
753bc96eca
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1-maint
...
into whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
2007-03-22 10:33:26 +01:00
holyfoot/hf@hfmain.(none)
655d2a6bcc
Merge mysql.com:/home/hf/work/mrg/mysql-5.0-opt
...
into mysql.com:/home/hf/work/mrg/mysql-5.1-opt
2007-03-22 12:28:21 +04:00
holyfoot/hf@mysql.com/hfmain.(none)
da5769fe6a
Merge mysql.com:/home/hf/work/mrg/mysql-4.1-opt
...
into mysql.com:/home/hf/work/mrg/mysql-5.0-opt
2007-03-22 12:26:32 +04:00
holyfoot/hf@mysql.com/hfmain.(none)
e0f0507f99
bug #16546 (DATETIME + 0 not always coerced in the same way)
...
fix for cast( AS DATETIME) + 0 operation.
I just implemented Item_datetime_typecast::val() method
as it is usually done in other classes.
Should be fixed more radically in 5.0
2007-03-22 12:24:56 +04:00
holyfoot/hf@mysql.com/hfmain.(none)
1f9fd51c6d
Merge bk@192.168.21.1:mysql-5.0
...
into mysql.com:/home/hf/work/mrg/mysql-5.0-opt
2007-03-22 12:21:06 +04:00
holyfoot/hf@hfmain.(none)
59bcb87766
Merge bk@192.168.21.1:mysql-5.1
...
into mysql.com:/home/hf/work/mrg/mysql-5.1-opt
2007-03-22 12:20:51 +04:00
mats@romeo.(none)
68ebc7e495
Merge romeo.(none):/home/bkroot/mysql-5.1-new-rpl
...
into romeo.(none):/home/bk/b23171-mysql-5.1-new-rpl
2007-03-22 09:05:11 +01:00
holyfoot/hf@hfmain.(none)
ecbf43a3f1
Merge mysql.com:/home/hf/work/mrg/mysql-5.0-opt
...
into mysql.com:/home/hf/work/mrg/mysql-5.1-opt
2007-03-22 11:50:24 +04:00
holyfoot/hf@hfmain.(none)
d24fb40374
Merge mysql.com:/home/hf/work/mrg/mysql-5.0-opt
...
into mysql.com:/home/hf/work/mrg/mysql-5.1-opt
2007-03-22 11:43:23 +04:00
igor@olga.mysql.com
03ae298ec3
Fixed bug #27362 : crash at evaluation of IN predicate when one
...
of its argument happened to be a decimal expression returning
the NULL value.
The crash was due to the fact the function in_decimal::set did
not take into account that val_decimal() could return 0 if
the decimal expression had been evaluated to NULL.
2007-03-22 00:05:36 -07:00
pekka@clam.(none)
2082a9e35b
Merge clam.ndb.mysql.com:/export/space/pekka/ndb/version/my50-bug24028
...
into clam.ndb.mysql.com:/export/space/pekka/ndb/version/my51-bug24028
2007-03-22 07:40:04 +01:00
tomas@whalegate.ndb.mysql.com
6e7528bd34
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1
...
into whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
2007-03-22 05:45:17 +01:00
tsmith@quadxeon.mysql.com
54e7bc8daa
Merge tsmith@bk-internal.mysql.com:/home/bk/mysql-5.1
...
into quadxeon.mysql.com:/benchmarks/ext3/TOSAVE/tsmith/bk/maint/51
2007-03-22 01:04:39 +01:00
tsmith@quadxeon.mysql.com
4981d45997
Merge tsmith@bk-internal.mysql.com:/home/bk/mysql-5.0-runtime
...
into quadxeon.mysql.com:/benchmarks/ext3/TOSAVE/tsmith/bk/maint/50
2007-03-21 23:58:02 +01:00
anozdrin/alik@booka.opbmk
0114c0a733
Fix for BUG#24040: Create View don't succed with "all privileges"
...
on a database.
The problem was that we required not less privileges on the base tables
than we have on the view.
The fix is to be more flexible and allow to create such a view (necessary
privileges will be checked at the runtime).
2007-03-22 00:34:15 +03:00
kostja@bodhi.local
f017117d84
Update the result file with an updated comment.
2007-03-22 00:11:58 +03:00
kostja@bodhi.local
54076b30d0
Try to fix events_logs_tests race on Windows.
2007-03-22 00:09:50 +03:00
kostja@bodhi.local
95597c8371
Merge bk-internal.mysql.com:/home/bk/mysql-5.1
...
into bodhi.local:/opt/local/work/mysql-5.1-runtime
2007-03-21 23:59:37 +03:00
kostja@bodhi.local
c011a25f66
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
...
into bodhi.local:/opt/local/work/mysql-5.0-runtime
2007-03-21 23:57:12 +03:00
evgen@moonbone.local
e2c9c9cc20
Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0-opt
...
into moonbone.local:/mnt/gentoo64/work/23345-bug-5.0-opt-mysql
2007-03-21 22:10:33 +03:00
evgen@moonbone.local
72bf9b4847
Bug#23345: Wrongly allowed INTO in a non-last select of a UNION.
...
INTO clause can be specified only for the last select of a UNION and it
receives the result of the whole query. But it was wrongly allowed in
non-last selects of a UNION which leads to a confusing query result.
Now INTO allowed only in the last select of a UNION.
2007-03-21 21:54:38 +03:00
omer@linux.site
c21a5bc8b1
Modifying mysql-test-run.pl to allow steeing of --secure-file-priv to 'mysql-test' when
...
running suites other tha the main one
2007-03-21 11:05:43 -07:00
iggy@recycle.(none)
762eae0bf1
Merge recycle.(none):/src/bug27144/my50-bug27144
...
into recycle.(none):/src/bug27144/my51-bug27144
2007-03-21 14:01:39 -04:00
iggy@recycle.(none)
a763917a6f
Bug#27144 sp-destruct.test is disabled on Windows
...
- Update test to run properly on Windows.
2007-03-21 13:58:11 -04:00
msvensson@pilot.blaudden
fb892abd1f
Merge pilot.blaudden:/home/msvensson/mysql/bug25262/my50-bug25262
...
into pilot.blaudden:/home/msvensson/mysql/bug25262/my51-bug25262
2007-03-21 18:38:08 +01:00
istruewing@chilla.local
c0f03fed94
Merge chilla.local:/home/mydev/mysql-5.0-bug26996
...
into chilla.local:/home/mydev/mysql-5.1-bug26996
2007-03-21 17:38:42 +01:00
tomas@poseidon.mysql.com
2ff03a2267
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.0-ndb
...
into poseidon.mysql.com:/home/tomas/mysql-5.0-ndb
2007-03-21 16:35:40 +01:00
tomas@poseidon.mysql.com
e1cd5c67dc
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1-new-ndb
...
into poseidon.mysql.com:/home/tomas/mysql-5.1-new-ndb
2007-03-21 16:34:23 +01:00
cbell/Chuck@mysql_cab_desk.
f0936e9441
Merge mysql_cab_desk.:C:/source/c++/mysql-5.0_BUG_25543
...
into mysql_cab_desk.:C:/source/c++/mysql-5.1_BUG_25543
2007-03-21 10:56:43 -04:00
istruewing@chilla.local
4fdafc545d
Merge chilla.local:/home/mydev/mysql-4.1-bug26996
...
into chilla.local:/home/mydev/mysql-5.0-bug26996
2007-03-21 15:55:14 +01:00
msvensson@pilot.blaudden
a0c2fae01f
Merge pilot.blaudden:/home/msvensson/mysql/mysql-5.0-maint
...
into pilot.blaudden:/home/msvensson/mysql/mysql-5.1-maint
2007-03-21 14:34:25 +01:00
msvensson@pilot.blaudden
31b2f339a0
Merge bk-internal:/home/bk/mysql-5.0-maint
...
into pilot.blaudden:/home/msvensson/mysql/mysql-5.0-maint
2007-03-21 14:30:47 +01:00
msvensson@pilot.blaudden
7c5df4d35b
Merge bk-internal:/home/bk/mysql-5.1-new-maint
...
into pilot.blaudden:/home/msvensson/mysql/mysql-5.1-maint
2007-03-21 14:24:50 +01:00
aelkin/elkin@dsl-hkibras1-ff1dc300-249.dhcp.inet.fi
79216dad87
Merge dsl-hkibras1-ff1dc300-249.dhcp.inet.fi:/home/elkin/MySQL/MAIN/mysql-5.1-build
...
into dsl-hkibras1-ff1dc300-249.dhcp.inet.fi:/home/elkin/MySQL/MAIN/mysql-5.1-new-maint
2007-03-21 13:16:03 +02:00
aelkin/elkin@dsl-hkibras1-ff1dc300-249.dhcp.inet.fi
ac1c81ddcf
Merge dsl-hkibras1-ff1dc300-249.dhcp.inet.fi:/home/elkin/MySQL/TEAM/FIXES/5.1/bug26079_binlog_max_innodb
...
into dsl-hkibras1-ff1dc300-249.dhcp.inet.fi:/home/elkin/MySQL/MAIN/mysql-5.1-new-maint
2007-03-21 13:14:12 +02:00
jani@ua141d10.elisa.omakaista.fi
1165fb5631
Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-5.1-marvel
...
into ua141d10.elisa.omakaista.fi:/home/my/bk/mysql-5.1-marvel
2007-03-21 11:26:17 +02:00
holyfoot/abotchkov@mysql.com/bk-internal.mysql.com
9d4a0118d8
mysqlbinlog-cp932.test:
...
merging
2007-03-21 09:28:26 +01:00
pekka@clam.ndb.mysql.com/clam.(none)
2e8bec03f7
ndb - bug#24028 in 5.0
...
proper fix exists only in version >= 5.1
2007-03-21 09:13:05 +01:00
tomas@whalegate.ndb.mysql.com
ffb35b80fe
minor fix of ndb cluster startup script
2007-03-21 08:02:11 +01:00
tsmith@quadxeon.mysql.com
9167aabaa3
Merge tsmith@bk-internal.mysql.com:/home/bk/mysql-5.1-build
...
into quadxeon.mysql.com:/benchmarks/ext3/TOSAVE/tsmith/bk/mar20/maint/51
2007-03-20 21:27:45 +01:00
joerg@trift2.
d21bf44517
Merge jbruehe@bk-internal.mysql.com:/home/bk/mysql-5.1-build
...
into trift2.:/MySQL/M51/test-help-5.1
2007-03-20 21:23:23 +01:00
tsmith@quadxeon.mysql.com
7018d9c5aa
Merge tsmith@bk-internal.mysql.com:/home/bk/mysql-5.1-ndb
...
into quadxeon.mysql.com:/benchmarks/ext3/TOSAVE/tsmith/bk/mar20/maint/51
2007-03-20 21:12:46 +01:00
joerg@trift2.
16ec3cb361
Merge trift2.:/MySQL/M50/test-help-5.0
...
into trift2.:/MySQL/M51/test-help-5.1
2007-03-20 21:05:57 +01:00