Commit graph

41330 commits

Author SHA1 Message Date
unknown
7e84939ef6 Merge zippy.cornsilk.net:/home/cmiller/work/mysql/bug22555/my51-bug22555
into  zippy.cornsilk.net:/home/cmiller/work/mysql/mysql-5.1-maint


BitKeeper/etc/collapsed:
  auto-union
sql/item_sum.cc:
  Auto merged
sql/item_sum.h:
  Auto merged
mysql-test/r/func_group.result:
  Manual merge.
mysql-test/t/func_group.test:
  Manual merge.
2006-12-22 16:05:59 -05:00
unknown
4dcf4cb981 Merge zippy.cornsilk.net:/home/cmiller/work/mysql/bug22555/my50-bug22555
into  zippy.cornsilk.net:/home/cmiller/work/mysql/bug22555/my51-bug22555


BitKeeper/etc/collapsed:
  auto-union
mysql-test/r/func_group.result:
  Auto merged
mysql-test/t/func_group.test:
  Auto merged
sql/item_sum.h:
  Auto merged
sql/item_sum.cc:
  Manual merge.
2006-12-22 15:59:10 -05:00
unknown
82bd9b6b61 Bug#22555: STDDEV yields positive result for groups with only one row
When only one row was present, the subtraction of nearly the same number 
resulted in catastropic cancellation, introducing an error in the 
VARIANCE calculation near 1e-15.  That was sqrt()ed to get STDDEV, the 
error was escallated to near 1e-8.  

The simple fix of testing for a row count of 1 and forcing that to yield 
0.0 is insufficient, as two rows of the same value should also have a
variance of 0.0, yet the error would be about the same.

So, this patch changes the formula that computes the VARIANCE to be one
that is not subject to catastrophic cancellation.

In addition, it now uses only (faster-than-decimal) floating point numbers
to calculate, and renders that to other types on demand.


mysql-test/r/func_group.result:
  Test that the bug is fixed, and that no unexpected behavior arises from the 
  changes.
mysql-test/t/func_group.test:
  Test that the bug is fixed, and that no unexpected behavior arises from the 
  changes.
sql/item_sum.cc:
  Serg's suggestion: Force all VARIANCE calculations to be done with floating-
  point types.  It's faster, and the SQL standard says we may implement these
  functions any way we want.
  
  Additionally, use a form of variance calculation that is not subject to 
  catastrophic cancellation.   
  http://static.flickr.com/108/311308512_5c4e1c0c3d_b.jpg
sql/item_sum.h:
  Remove unused members and add a comment describing the recurrence relation.
2006-12-22 15:37:37 -05:00
unknown
610afd4243 Merge polly.local:/tmp/maint/bug24037/my51-bug24037
into  polly.local:/home/kaa/src/maint/mysql-5.1-maint
2006-12-22 17:33:54 +03:00
unknown
4dfab457ff Merge polly.local:/tmp/maint/bug24037/my50-bug24037
into  polly.local:/tmp/maint/bug24037/my51-bug24037


strings/ctype-extra.c:
  Auto merged
2006-12-22 16:14:57 +03:00
unknown
48213dd093 Merge polly.local:/tmp/maint/bug24037/my41-bug24037
into  polly.local:/tmp/maint/bug24037/my50-bug24037


strings/conf_to_src.c:
  Auto merged
strings/ctype-extra.c:
  Auto merged
2006-12-22 16:08:10 +03:00
unknown
7d4a5869e9 Add the missing file
mysql-test/include/ndb_not_readonly.inc:
  New BitKeeper file ``mysql-test/include/ndb_not_readonly.inc''
2006-12-22 13:57:33 +01:00
unknown
0fb90c7f63 Wait for mysqld connected to NDB to come out of read only mode 2006-12-22 13:34:23 +01:00
unknown
ee37cf0bb9 Fix for the bug #24037 "Lossy Hebrew to Unicode conversion".
Added definitions for the following Hebrew characters as specified by the ISO/IEC 8859-8:1999:

LEFT-TO-RIGHT MARK (LRM)
RIGHT-TO-LEFT MARK (RLM)


sql/share/charsets/hebrew.xml:
  Added definitions for the following Hebrew characters as specified by the ISO/IEC 8859-8:1999:
  
  LEFT-TO-RIGHT MARK (LRM)
  RIGHT-TO-LEFT MARK (RLM)
strings/conf_to_src.c:
  Added a warning comment in the generated C source file.
strings/ctype-extra.c:
  Re-generated from sql/share/charsets/hebrew.xml
mysql-test/r/ctype_hebrew.result:
  Added the test case for bug #24037 "Lossy Hebrew to Unicode conversion"
mysql-test/t/ctype_hebrew.test:
  Added the test case for bug #24037 "Lossy Hebrew to Unicode conversion"
2006-12-22 15:30:37 +03:00
unknown
5feb49e167 Potential use of NULL pointer in 'plugin_for_each_with_mask', check pointer
before referencing it.


sql/sql_plugin.cc:
  Make sure the plugin being refernced in the plugins array has not been set to NULL already.
2006-12-22 12:35:06 +01:00
unknown
1fe119bcc1 Merge pilot.mysql.com:/home/msvensson/mysql/my51-ndb-gca-my51-m
into  pilot.mysql.com:/home/msvensson/mysql/mysql-5.1-new-maint
2006-12-22 12:33:34 +01:00
unknown
eec509bd77 Bug#22694 "function plugin_foreach_with_mask() uses an uninitialized pointer"
Fix uninitialized memory.


sql/sql_plugin.cc:
  move my_alloca() call out of nested stack frame.
  ensure that every element of array is initialized.
2006-12-22 12:12:58 +01:00
unknown
2b8775510d Merge pilot.mysql.com:/home/msvensson/mysql/mysql-5.0-maint
into  pilot.mysql.com:/home/msvensson/mysql/mysql-5.1-new-maint


mysql-test/t/rpl_openssl.test:
  Auto merged
2006-12-22 10:20:39 +01:00
unknown
d84b651e34 Cset exclude: msvensson@neptunus.(none)|ChangeSet|20061215122345|24188
mysql-test/t/rpl_openssl.test:
  Exclude
2006-12-22 10:20:20 +01:00
unknown
7443fed500 Merge pilot.mysql.com:/home/msvensson/mysql/mysql-5.0-maint
into  pilot.mysql.com:/home/msvensson/mysql/mysql-5.1-new-maint


mysql-test/mysql-test-run.pl:
  Auto merged
2006-12-22 10:00:58 +01:00
unknown
533ce8cf25 Merge pilot.mysql.com:/home/msvensson/mysql/mysql-4.1-maint
into  pilot.mysql.com:/home/msvensson/mysql/mysql-5.0-maint


mysql-test/mysql-test-run.pl:
  Auto merged
2006-12-22 10:00:12 +01:00
unknown
c537bbf8ef Set default number of masters to 1 2006-12-22 09:59:41 +01:00
unknown
8fb853ca50 Merge pilot.mysql.com:/home/msvensson/mysql/mysql-5.0-maint
into  pilot.mysql.com:/home/msvensson/mysql/mysql-5.1-new-maint


mysql-test/lib/mtr_cases.pl:
  Auto merged
mysql-test/mysql-test-run.pl:
  Auto merged
mysql-test/lib/mtr_process.pl:
  Auto merged
2006-12-22 01:13:02 +01:00
unknown
6de718d22a Merge pilot.mysql.com:/home/msvensson/mysql/mysql-4.1-maint
into  pilot.mysql.com:/home/msvensson/mysql/mysql-5.0-maint
2006-12-22 01:12:02 +01:00
unknown
82338d451f Merge neptunus:mysql/mysql-5.0-maint
into  pilot.mysql.com:/home/msvensson/mysql/mysql-5.0-maint
2006-12-22 01:11:27 +01:00
unknown
2218cbb059 Merge neptunus:mysql/mysql-4.1-maint
into  pilot.mysql.com:/home/msvensson/mysql/mysql-4.1-maint
2006-12-22 00:58:32 +01:00
unknown
1acf0e78d7 Merge pilot.mysql.com:/home/msvensson/mysql/mysql-5.0-maint
into  pilot.mysql.com:/home/msvensson/mysql/mysql-5.1-new-maint


include/mysql_h.ic:
  Auto merged
mysql-test/t/mysqltest.test:
  Auto merged
mysql-test/t/rpl_rotate_logs.test:
  Auto merged
mysql-test/t/trigger.test:
  Auto merged
vio/viossl.c:
  Auto merged
2006-12-22 00:39:08 +01:00
unknown
b461c41cd3 Bug #23125 [patch] trigger test fails when run as root
- Skip tests using chmod when running as root


mysql-test/t/information_schema_chmod.test:
  Use mysqltest builtin "chmode"
mysql-test/t/mysqltest.test:
  Dont run as root - test chmod
mysql-test/t/rpl_rotate_logs.test:
  Use mysqltest builtin "chmode"
  Use 'write_file' and 'chmod' instead of system
mysql-test/t/trigger.test:
  Don't run as root
  Use 'write_file' and 'chmod'
mysql-test/t/varbinary.test:
  Don't run as root
2006-12-22 00:38:34 +01:00
unknown
fd988f5b9a Bug#24148 regression tests hang with SSL enabled
- Don't call SSL_shutdown a second time


vio/viossl.c:
  SSL_shutdown might return 0 indicating that it should be called once
  again for a graceful shutdown. Since the socket are going to be closed
  anyway ther is no need for the second call.
2006-12-22 00:05:40 +01:00
unknown
275c5802e6 Merge neptunus.(none):/home/msvensson/mysql/mysql-4.1-maint
into  neptunus.(none):/home/msvensson/mysql/mysql-5.0-maint


mysql-test/lib/mtr_cases.pl:
  Auto merged
mysql-test/lib/mtr_process.pl:
  Auto merged
mysql-test/mysql-test-run.pl:
  Auto merged
2006-12-20 23:59:34 +01:00
unknown
ace654d685 Count number of masters the test is actually using and only start as
many as neeeded
2006-12-20 23:44:53 +01:00
unknown
6914a6b322 When running with --valgrind and --debug send all the output from
mysqld and valgrind to tracefile.
2006-12-20 16:54:37 +01:00
unknown
baabcb290f Add possibility to activate --mark-progress of mysqltest 2006-12-20 16:53:06 +01:00
unknown
1012542590 Merge bk-internal.mysql.com:/home/bk/mysql-5.0-maint
into  qualinost.(none):/home/mtaylor/src/mysql-5.0-maint
2006-12-19 12:28:09 -08:00
unknown
af47c2806b Merge bk-internal.mysql.com:/home/bk/mysql-5.1-maint
into  qualinost.(none):/home/mtaylor/src/mysql-5.1-maint
2006-12-19 12:20:29 -08:00
unknown
e434683d79 Merge polly.local:/tmp/maint/bug24117/my51-bug24117
into  polly.local:/home/kaa/src/maint/mysql-5.1-maint


include/mysql_h.ic:
  Auto merged
2006-12-19 12:28:30 +03:00
unknown
466758f77b Merge polly.local:/tmp/maint/bug24117/my50-bug24117
into  polly.local:/home/kaa/src/maint/mysql-5.0-maint


include/mysql_h.ic:
  Auto merged
2006-12-19 12:24:44 +03:00
unknown
1b879d0c2c Added copy_typelib() declaration to make ABI compatibility test happy 2006-12-19 12:21:41 +03:00
unknown
a9da030df4 Merge polly.local:/tmp/maint/bug24117/my50-bug24117
into  polly.local:/tmp/maint/bug24117/my51-bug24117


include/mysql_h.ic:
  Null merge
2006-12-19 11:47:48 +03:00
unknown
6cf0571a97 Added copy_typelib() declaration to make ABI compatibility test happy 2006-12-19 11:21:14 +03:00
unknown
07a4a6a967 Merge qualinost.(none):/home/mtaylor/src/mysql-5.0-maint
into  qualinost.(none):/home/mtaylor/src/mysql-5.1-maint


mysys/typelib.c:
  Auto merged
sql/field.cc:
  Auto merged
sql/field.h:
  Auto merged
2006-12-18 21:26:12 -08:00
unknown
7788b06a00 Merge bk-internal.mysql.com:/home/bk/mysql-5.1-maint
into  qualinost.(none):/home/mtaylor/src/mysql-5.1-maint
2006-12-18 21:21:50 -08:00
unknown
5fdbd481b0 Merge qualinost.(none):/home/mtaylor/src/mysql-4.1-maint
into  qualinost.(none):/home/mtaylor/src/mysql-5.0-maint
2006-12-18 21:16:18 -08:00
unknown
76daa59fc8 Search through options to find where the slow query log actually is. 2006-12-18 21:12:01 -08:00
unknown
0dc0e52db3 Merge bk-internal.mysql.com:/home/bk/mysql-5.0-maint
into  polly.local:/home/kaa/src/maint/mysql-5.0-maint
2006-12-18 18:04:26 +03:00
unknown
e0a63c810e Merge bk-internal.mysql.com:/home/bk/mysql-5.1-maint
into  polly.local:/home/kaa/src/maint/mysql-5.1-maint
2006-12-18 17:47:48 +03:00
unknown
f07393ab85 Merge fix of updated test result 2006-12-18 14:38:12 +01:00
unknown
c4c6ab23c6 Merge maint1.mysql.com:/data/localhome/msvensson/mysql-5.0-maint
into  maint1.mysql.com:/data/localhome/msvensson/mysql-5.1-new-maint


mysql-test/r/symlink.result:
  Auto merged
mysql-test/t/symlink.test:
  Auto merged
include/my_pthread.h:
  Manual merge
2006-12-18 14:27:51 +01:00
unknown
9121fa507f Update function description for Event_queue::get_top_for_execution_if_time 2006-12-18 14:12:19 +01:00
unknown
b2a7521a21 Merge maint1:/data/localhome/msvensson/mysql-5.1-new-maint
into  shellback.:C:/mysql/mysql-5.1-new-maint


sql/event_queue.cc:
  SCCS merged
2006-12-18 12:11:22 +01:00
unknown
b52f52224a Reorganize the wait for event to be scheduled loop
Only use "set_timespec" when there is a need to use it
2006-12-18 12:00:35 +01:00
unknown
e403f0e774 Merge maint1:/data/localhome/msvensson/mysql-5.0-maint
into  shellback.:C:/mysql/mysql-5.0-maint
2006-12-18 11:30:34 +01:00
unknown
43a251011c Change windows pthread_cond_timedwait to use an absolute time value
include/my_pthread.h:
  Calculate absolute time value int set_timespec_*
mysys/my_wincond.c:
  Use absolute timevalue in pthread_cond_timedwwait
2006-12-18 11:09:47 +01:00
unknown
1aad903b71 Use MYSQLTEST_VARDIR variable 2006-12-18 10:22:48 +01:00
unknown
a241b1ab40 Merge shakedown.(none):/home/jpipes/dev/mysql-5.1-maint
into  shakedown.(none):/home/jpipes/dev/bug21970/my51-bug21970
2006-12-16 20:47:21 -05:00