An error occurred fetching the project authors.
- 18 May, 2009 1 commit
-
-
Gleb Shchepa authored
The RAND(N) function where the N is a field of "constant" table (table of single row) failed with a SIGFPE. Evaluation of RAND(N) rely on constant status of its argument. Current server "seeded" random value for each constant argument only once, in the Item_func_rand::fix_fields method. Then the server skipped a call to seed_random() in the Item_func_rand::val_real method for such constant arguments. However, non-constant state of an argument may be changed after the call to fix_fields, if an argument is a field of "constant" table. Thus, pre-initialization of random value in the fix_fields method is too early. Initialization of random value by seed_random() has been removed from Item_func_rand::fix_fields method. The Item_func_rand::val_real method has been modified to call seed_random() on the first evaluation of this method if an argument is a function.
-
- 23 Feb, 2009 1 commit
-
-
Alexey Kopytov authored
Both of our own implementations of rint(3) were inconsistent with the most common behavior of rint() on those platforms that have it: round to nearest, break ties by rounding to nearest even. Fixed by leaving just one implementation of rint() in our source tree, and changing its behavior to match the most common native implementations on other platforms.
-
- 19 Feb, 2008 1 commit
-
-
kaa@kaamos.(none) authored
floating point numbers Some math functions did not check if the result is a valid number (i.e. neither of +-inf or nan). Fixed by validating the result where necessary and returning NULL in case of invalid result.
-
- 01 Oct, 2007 1 commit
-
-
gkodinov/kgeorge@magare.gmz authored
-
- 28 Sep, 2007 1 commit
-
-
gkodinov/kgeorge@macbook.gmz authored
When calculating the result length of an integer DIV function the number of decimals was used without checking the result type first. Thus an uninitialized number of decimals was used for some types. This caused an excessive amount of memory to be allocated for the field's buffer and crashed the server. Fixed by using the number of decimals only for data types that can have decimals and thus have valid decimals number.
-
- 28 Apr, 2007 1 commit
-
-
kaa@polly.local authored
Fix for bug #24912 "problems with bigint in abs() ceiling() round() truncate() mod()" and a number of related problems: - unsigned flag was not handled correctly for a number of mathematical funcions, which led to incorrect results - passing large values as the number of decimals to ROUND() resulted in incorrect results and even server crashes in some cases - reverted the fix and the testcase for bug #10083 as it violates the manual - fixed some testcases which relied on broken ROUND() behavior
-
- 23 Jan, 2007 1 commit
-
-
gkodinov/kgeorge@macbook.gmz authored
RAND() must accept scalar expressions regardless of their kind. That includes both constant expressions and expressions that depend on column values. When the expression is constant the random seed can be initialized at compile time. However when the expression is not constant the random seed must be initialized at each invocation (while it still can be allocated at compile time). Implemented the above rules by extending Item_func_rand::val_real() to initialize the random seed at the correct place.
-
- 02 Nov, 2006 1 commit
-
-
malff/marcsql@weblab.(none) authored
Due to the complexity of this change, everything is documented in WL#3565 This patch is the third iteration, it takes into account the comments received to date.
-
- 06 Mar, 2006 1 commit
-
-
gluh@eagle.intranet.mysql.r18.ru authored
calculate Item_func_format::max_length using charset->mbmaxlen
-
- 07 Feb, 2006 1 commit
-
-
gunnar@mysql.com. authored
fix for bug#8461 BUG 8461 - TRUNCATE returns incorrect result if 2nd argument is negative Reason: Both TRUNCATE/ROUND converts INTEGERS to DOUBLE and back to INTEGERS Changed the integer routine to work on integers only. This bug affects 4.1, 5.0 and 5.1 Fixing in 4.1 will need to change the routine to handle different types individually. 5.0 did had different routines for different types already just the INTEGER routine was bad.
-
- 19 Dec, 2005 1 commit
-
-
holyfoot@deer.(none) authored
-
- 18 Oct, 2005 1 commit
-
-
jimw@mysql.com authored
-
- 17 Oct, 2005 1 commit
-
-
hf@deer.(none) authored
-
- 06 Sep, 2005 1 commit
-
-
gluh@eagle.intranet.mysql.r18.ru authored
Argument of RAND function can be constant value only
-
- 28 Jul, 2005 1 commit
-
-
monty@mysql.com authored
-
- 23 Jun, 2005 1 commit
-
-
jimw@mysql.com authored
-
- 15 Jun, 2005 1 commit
-
-
hf@deer.(none) authored
-
- 09 Jun, 2005 1 commit
-
-
holyfoot@hf-ibm.(none) authored
-
- 08 Jun, 2005 1 commit
-
-
holyfoot@hf-ibm.(none) authored
-
- 19 May, 2005 1 commit
-
-
ramil@mysql.com authored
we need proper rounding there
-
- 27 Apr, 2005 1 commit
-
-
ramil@mysql.com authored
-
- 19 Apr, 2005 1 commit
-
-
ramil@mysql.com authored
-
- 20 Dec, 2004 1 commit
-
-
ram@gw.mysql.r18.ru authored
-
- 11 Aug, 2004 1 commit
-
-
lenz@mysql.com authored
format() around them (as suggested by serg)
-
- 19 Mar, 2004 1 commit
-
-
monty@mysql.com authored
Fixed some wrong column specifications in mysql_fix_privilege_tables
-
- 04 Mar, 2004 1 commit
-
-
vva@eagle.mysql.r18.ru authored
-
- 13 Jan, 2004 1 commit
-
-
vva@eagle.mysql.r18.ru authored
by fixing optimizer bug with help of 'volatile' keyword
-
- 30 Oct, 2003 1 commit
-
-
bell@sanja.is.com.ua authored
added code covarage for functions convert(), nullif(), crc32(), is_used_lock(), char_lengtrh(), bit_xor() added string length for more speed made code covarage for print() method of Item fixed printability of some items (SCRUM) (WL#1274)
-
- 03 Dec, 2002 1 commit
-
-
monty@hundin.mysql.fi authored
Optimized SELECT DISTINCT ... ORDER BY ... LIMIT Fixed reference to uninitalized variable
-
- 17 Jul, 2002 1 commit
-
-
peter@mysql.com authored
-
- 31 May, 2002 1 commit
-
-
monty@hundin.mysql.fi authored
Change TRUNCATE(number) to truncate towards zero for negative numbers Fix NULL handling for DESCRIBE table_name
-
- 07 Jan, 2001 1 commit
-
-
monty@donna.mysql.com authored
Fixed bug when deleting keys with possible NULL values many changes to mysqltest
-
- 28 Dec, 2000 1 commit
-
-
monty@donna.mysql.com authored
A lot of new tests to mysqltest Fixed bug with BDB tables and autocommit
-