evgen@moonbone.local
8f904e9cab
Fixed bug#16272: IF function with decimal args can produce wrong result
...
The Item_func_if::fix_length_and_dec() function when calculating length of
result doesn't take into account unsigned_flag. But it is taken when
calculating length of temporary field. This result in creating field that
shorter than needed. Due to this, in the reported query 40.0 converted to 9.99.
The function Item_func_if::fix_length_and_dec() now adds 1 to the max_length if
the unsigned_flag isn't set.
2006-02-14 16:22:37 +03:00
igor@igor-inspiron.creware.com
785fca1162
Manual merge
2005-06-13 11:45:29 -07:00
igor@igor-inspiron.creware.com
754e6c0527
func_if.result, func_if.test:
...
Correction for test case of bug #11142 .
2005-06-13 11:38:16 -07:00
igor@igor-inspiron.creware.com
42271e4240
func_if.result, func_if.test:
...
Added a test case for bug #11142 .
item_cmpfunc.cc:
Fixed bug #11142 .
Implementation of Item_func_nullif::is_null was corrected.
2005-06-13 11:24:26 -07:00
evgen@moonbone.local
f89352602c
Fix bug #9669 Ordering on IF function with FROM_UNIXTIME function fails
...
Integer overflow results in wrong field sortlength.
2005-06-02 17:00:07 +04:00
monty@mysql.com
201ee3eb78
Invalid DEFAULT values for CREATE TABLE now generates errors. (Bug #5902 )
...
CAST() now produces warnings when casting a wrong INTEGER or CHAR values. This also applies to implicite string to number casts. (Bug #5912 )
ALTER TABLE now fails in STRICT mode if it generates warnings.
Inserting a zero date in a DATE, DATETIME or TIMESTAMP column during TRADITIONAL mode now produces an error. (Bug #5933 )
2005-04-01 15:04:50 +03:00
monty@mysql.com
afbe601302
merge with 4.1
2004-10-29 19:26:52 +03:00
monty@mysql.com
62f3cd6a31
Merge with 4.0 for 4.1 release
...
Noteworthy:
- New HANDLER code
- New multi-update-grant-check code
- Table lock code in ha_innodb.cc was not applied
2004-10-06 19:14:33 +03:00
gluh@gluh.mysql.r18.ru
276622c92d
Fix for bug #5595 : NULLIF() IS NULL returns false if NULLIF() returns NULL
2004-09-18 13:06:44 +04:00
monty@mysql.com
e67fcee270
Update after merge
2004-09-09 14:55:28 +03:00
bell@sanja.is.com.ua
392c306969
fixed open_and_lock_tables result processing (all open_and_lock_tables revision)
...
fixed printing of COLLATE operation
(BUG#5155)
2004-08-31 10:06:38 +03:00
bar@mysql.com
87537752e2
"SELECT BINARY x" now means "SELECT CAST(x AS BINARY)".
2004-08-26 16:31:37 +05:00
bell@sanja.is.com.ua
1e3f10a4b1
mark subquery in the FROM clause like derived and quoate all identifiers (BUG#4609)
2004-07-20 08:48:28 +03:00
monty@mysql.com
b11d258835
Merge with 4.0.21
2004-06-18 04:38:58 +03:00
serg@serg.mylan
86e9dc29b0
BUG#3987 - if(int, aggregate(int))
2004-06-07 12:38:35 +02:00
bell@sanja.is.com.ua
4c774e0c18
fixed flags of printed query
2004-05-13 23:47:20 +03:00
monty@mysql.com
f9ad650490
merge with 4.0
2004-03-17 10:36:12 +02:00
gluh@gluh.mysql.r18.ru
86211a1b44
Fix for bug #2629 NULLIF() doesn't behave as described in manual
2004-03-16 11:33:03 +04:00
antony@ltantony.rdg.cyberkinetica.homeunix.net
fcf96dbb18
WorkLog#1323
...
Deprecate the use of TYPE=... Preferred syntax is ENGINE=
2003-12-10 04:31:42 +00:00
bell@sanja.is.com.ua
33346e26af
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)
2003-10-30 12:57:26 +02:00
monty@hundin.mysql.fi
454339b29c
Fixes after last merge
2002-08-12 07:02:08 +03:00
monty@hundin.mysql.fi
d367495e39
Portability fixes
2002-04-26 08:56:28 +03:00
monty@tik.mysql.fi
ecf2c4e15a
New if tests
2002-04-22 23:41:55 +03:00