bar@bar.mysql.r18.ru
a057f75bc1
Fixed that this sequence didn't produce an error as it should have:
...
CREATE TABLE t1 (s1 CHAR(5) COLLATE latin1_german1_ci,
s2 CHAR(5) COLLATE latin1_swedish_ci);
SELECT * FROM t1 WHERE s1 = s2;
2003-07-29 17:39:39 +05:00
bar@bar.mysql.r18.ru
46813d545d
All functions now use the same function to aggregate comparison
...
and result types
2003-07-18 15:50:40 +05:00
bar@bar.mysql.r18.ru
e6cd54379e
IN now aggregates all argument types for comparison
2003-07-18 14:03:54 +05:00
bar@bar.mysql.r18.ru
c8ecb45223
CASE optimization
2003-07-18 13:11:47 +05:00
bar@bar.mysql.r18.ru
ccece982fb
Some fixes in CASE.
...
Test suit was extended to conver various arguments mixes.
2003-07-18 12:42:35 +05:00
bar@bar.mysql.r18.ru
a2f7ef9c8b
CASE now aggregates all argument types instead of using the only one argument
2003-07-17 22:58:05 +05:00
bar@bar.mysql.r18.ru
8c06421c12
CASE stores first_expr and else_expr in args[] array now.
...
This allowed to reuse a lot of code.
2003-07-17 16:07:56 +05:00
bar@bar.mysql.r18.ru
a35fff5bc3
Item_func_null doesn't have a separate Item for the first argument anymore.
...
args[0] is used instead. This allowed to resuse a lot of code.
2003-07-16 11:29:16 +05:00
bar@bar.mysql.r18.ru
e26b90c238
COALESCE now aggregates its argument types in this way:
...
if some of the arguments is STRING_RESULT the STRING_RESULT
else if some of the arguments is REAL_RESULT then REAL_RESULT
else INT_RESULT
2003-07-14 19:28:36 +05:00
bar@bar.mysql.r18.ru
d209cf70f8
More code was reused
2003-07-04 20:19:07 +05:00
bar@bar.mysql.r18.ru
07f94cb7cd
Row comparison now does compare field collations, e.g.
...
ROW('a','b','c) = ROW('A' collate latin1_bin,'b','c') returns 0
When a number is compared to a string, character sets and
collations are not aggregated. e.g. this returned error in 4.1.0:
SELECT 1=_latin2'1';
because character sets was aggregated, and 1 was considered as
a string of latin1 charset during this aggregation.
2003-07-03 17:00:01 +05:00
bar@bar.mysql.r18.ru
74b74ad5e7
There is no Item->binary() anymore. It was remain from 4.0.
2003-07-02 18:34:43 +05:00
bell@sanja.is.com.ua
7c799b17b6
merged
2003-06-29 15:35:48 +03:00
bar@bar.mysql.r18.ru
d31de69795
str0 IN (str1, str2, ...) now works according to collation rules
2003-06-27 13:52:38 +05:00
bar@bar.mysql.r18.ru
52a7f95678
BETWEEN now works according to collation rules
2003-06-27 12:02:08 +05:00
bar@bar.mysql.r18.ru
65335d37ff
New messages for 3-adic and N-adic operations
...
REPLACE() now processed arguments collations according to standard
2003-06-26 15:45:04 +05:00
bell@sanja.is.com.ua
2d120d32fa
cond_count moved to SELECT_LEX_NODE
...
fixed BUG #726
2003-06-26 11:09:11 +03:00
bar@bar.mysql.r18.ru
cb4539e8de
String comparison functions now use the same DTCollation with
...
CONCAT() and other string functions. This allows to reuse a lot
if code and to simplify further development.
2003-06-24 17:12:07 +05:00
bar@bar.mysql.r18.ru
7371150f2d
New class DTCollation (SQL:2003 calls it "declared type collation")
...
It's a combination of collation and its derivation (precedence order)
2003-06-24 15:11:07 +05:00
bar@bar.mysql.r18.ru
4c7714b7f9
item_cmpfunc.cc:
...
Temporarily fix for test failure
,.
2003-06-20 19:05:45 +05:00
bar@bar.mysql.r18.ru
f78a77798c
item_cmpfunc.cc:
...
Rewritten in nicer way
,
2003-06-20 18:45:28 +05:00
monty@narttu.mysql.fi
e090f2d0cc
Fixes for make_win_src_distributions
...
Removed compiler warnings
2003-06-15 23:24:37 +03:00
venu@myvenu.com
8f57d0e2e4
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
...
into myvenu.com:/home/venu/work/sql/dev-4.1
2003-06-03 18:45:53 -07:00
venu@myvenu.com
27469ec8b9
Windows build fixups with the latest source
2003-06-03 18:45:07 -07:00
ram@mysql.r18.ru
a36d4212fc
Moved spatial functions to the sql/item_geofunc.cc file.
2003-05-30 15:22:34 +05:00
bar@bar.mysql.r18.ru
8192d169a2
CHARSET_INFO structure reorganization for easier maintainance
2003-05-23 17:45:52 +05:00
bar@bar.mysql.r18.ru
ff02bddc1a
Automatic conversion into supersets (utf8, ucs2) for comparison in some cases
...
USER(), DATABASE() and VERSION() return in utf8 now
2003-05-23 10:45:46 +05:00
monty@mashka.mysql.fi
cb7061ebe4
merge
2003-05-22 02:57:27 +03:00
monty@mashka.mysql.fi
6aa8929cf3
After merge fixes
...
Added initialization of all important global variables
2003-05-21 21:39:58 +03:00
bar@bar.mysql.r18.ru
5b788e660a
A separate, better error message when it's impossible to aggregate strings for some operation
2003-05-20 16:36:59 +05:00
monty@narttu.mysql.fi
51f9879008
Removed compiler warnings
...
Fixed memory leak in new filesort code
Optimzed sub selects to use keys with outer references.
Increased max tables in join to 62
2003-05-06 01:38:38 +03:00
bell@sanja.is.com.ua
a3d3937ac2
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
...
into sanja.is.com.ua:/home/bell/mysql/bk/work-in-4.1
2003-04-23 10:37:13 +03:00
bell@sanja.is.com.ua
3beca2dbb1
fixed bug 185 (constant IN (SELECT field ...) do not return NULL correctly)
2003-04-23 00:01:19 +03:00
bar@bar.mysql.r18.ru
292f7954bd
item_cmpfunc.cc:
...
Turbo() is not used anymore for multibyte charsets.
2003-04-22 12:01:28 +05:00
Sinisa@sinisa.nasamreza.org
165b3960be
Fixing crashing bugs as reported in bugs database
...
#195
2003-03-28 16:57:03 +02:00
bar@bar.mysql.r18.ru
6b18a618eb
item_cmpfunc.cc:
...
IFNULL() now honors collations
2003-03-21 19:02:07 +04:00
bar@bar.mysql.r18.ru
b3e89e3b21
IF() and LEAST() now honors coercibility
2003-03-21 18:31:41 +04:00
bar@bar.mysql.r18.ru
682435db72
A separate variable national_charset_info
...
Fixes according coercibility tables, p162, SQL Complete
2003-03-21 11:21:01 +04:00
bar@bar.mysql.r18.ru
93cfdcdf92
item_cmpfunc.cc:
...
cmp_charset was not initialized
valgrind fix
LIKE now works according to coercibility rules
2003-03-20 22:43:40 +04:00
monty@narttu.mysql.fi
9f200ede0d
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
...
into narttu.mysql.fi:/my/mysql-4.1
2003-03-20 02:06:08 +02:00
bar@bar.mysql.r18.ru
22cb247c74
Strings comparison is now done according to "Collating sequences used for
...
comparison" table, "SQL Complete, Really", page 162
2003-03-19 19:13:28 +04:00
ram@mysql.r18.ru
031ac2a7b2
SRID support.
...
GeomertyFromWKB() function.
SRID() function.
::store() methods for Field_geom.
Code cleanup.
2003-03-18 15:30:32 +04:00
bar@bar.mysql.r18.ru
04db86f22a
2003-03-17 21:56:34 +04:00
monty@narttu.mysql.fi
a434bca704
Merge with 4.0
2003-03-16 19:17:54 +02:00
bell@sanja.is.com.ua
113dc05655
Merge sanja.is.com.ua:/home/bell/mysql/mysql-4.1
...
into sanja.is.com.ua:/home/bell/mysql/work-in-4.1
2003-03-11 13:26:26 +02:00
bell@sanja.is.com.ua
1cbf8f7408
fixed cached constsnt determination (bug #142 related)
2003-03-11 12:43:30 +02:00
Sinisa@sinisa.nasamreza.org
9c8838749f
Fix for a bug with ROW(..) <=> ROW(...)
2003-03-10 20:54:18 +02:00
bar@bar.mysql.r18.ru
391b3ec636
item_func.cc, item_cmpfunc.cc, unireg.cc, table.cc, sql_base.cc:
...
some default_charset_info were removed
2003-03-07 13:39:53 +04:00
bar@bar.mysql.r18.ru
f95eb82934
stringcmp() and sortcmp() have been unified
...
into the only one sortcmp() with additional
CHARSET_INFO *cmp_charset argument.
2003-03-04 18:01:59 +04:00
bar@bar.mysql.r18.ru
48cdd97866
Strings which appear without charset context,
...
like number-to-string-convertion-result, now
takes current database character set, instead of
thread character set. This makes it easy to be
SQL99 conformant and 4.0 compatible.
Item->thd_charset() is renamed to Item->default_charset()
as old name doesn't describe its nature anymore.
2003-03-03 10:53:08 +04:00