Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
887fd04f
Commit
887fd04f
authored
Jan 24, 2004
by
Sinisa@sinisa.nasamreza.org
Browse files
Options
Browse Files
Download
Plain Diff
Merge sinisa@bk-internal.mysql.com:/home/bk/mysql-4.1
into sinisa.nasamreza.org:/mnt/work/mysql-4.1
parents
e120f5ce
6315a487
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
14 deletions
+11
-14
mysql-test/r/cast.result
mysql-test/r/cast.result
+3
-0
mysql-test/t/cast.test
mysql-test/t/cast.test
+1
-0
mysql-test/t/mysqldump.test
mysql-test/t/mysqldump.test
+4
-4
sql/sql_union.cc
sql/sql_union.cc
+1
-0
sql/sql_yacc.yy
sql/sql_yacc.yy
+2
-10
No files found.
mysql-test/r/cast.result
View file @
887fd04f
...
@@ -33,6 +33,9 @@ cast("2001-1-1" as DATE) cast("2001-1-1" as DATETIME)
...
@@ -33,6 +33,9 @@ cast("2001-1-1" as DATE) cast("2001-1-1" as DATETIME)
select cast("1:2:3" as TIME);
select cast("1:2:3" as TIME);
cast("1:2:3" as TIME)
cast("1:2:3" as TIME)
01:02:03
01:02:03
select CONVERT("2004-01-22 21:45:33",DATE);
CONVERT("2004-01-22 21:45:33",DATE)
2004-01-22
set names binary;
set names binary;
select cast(_latin1'test' as char character set latin2);
select cast(_latin1'test' as char character set latin2);
cast(_latin1'test' as char character set latin2)
cast(_latin1'test' as char character set latin2)
...
...
mysql-test/t/cast.test
View file @
887fd04f
...
@@ -13,6 +13,7 @@ select cast(5 as unsigned) -6.0;
...
@@ -13,6 +13,7 @@ select cast(5 as unsigned) -6.0;
select
cast
(
"A"
as
binary
)
=
"a"
,
cast
(
BINARY
"a"
as
CHAR
)
=
"A"
;
select
cast
(
"A"
as
binary
)
=
"a"
,
cast
(
BINARY
"a"
as
CHAR
)
=
"A"
;
select
cast
(
"2001-1-1"
as
DATE
),
cast
(
"2001-1-1"
as
DATETIME
);
select
cast
(
"2001-1-1"
as
DATE
),
cast
(
"2001-1-1"
as
DATETIME
);
select
cast
(
"1:2:3"
as
TIME
);
select
cast
(
"1:2:3"
as
TIME
);
select
CONVERT
(
"2004-01-22 21:45:33"
,
DATE
);
#
#
# Character set convertion
# Character set convertion
...
...
mysql-test/t/mysqldump.test
View file @
887fd04f
sql/sql_union.cc
View file @
887fd04f
...
@@ -146,6 +146,7 @@ int st_select_lex_unit::prepare(THD *thd_arg, select_result *sel_result,
...
@@ -146,6 +146,7 @@ int st_select_lex_unit::prepare(THD *thd_arg, select_result *sel_result,
for
(;
sl
;
sl
=
sl
->
next_select
())
for
(;
sl
;
sl
=
sl
->
next_select
())
{
{
sl
->
options
|=
SELECT_NO_UNLOCK
;
JOIN
*
join
=
new
JOIN
(
thd_arg
,
sl
->
item_list
,
JOIN
*
join
=
new
JOIN
(
thd_arg
,
sl
->
item_list
,
sl
->
options
|
thd_arg
->
options
|
additional_options
,
sl
->
options
|
thd_arg
->
options
|
additional_options
,
tmp_result
);
tmp_result
);
...
...
sql/sql_yacc.yy
View file @
887fd04f
...
@@ -664,7 +664,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b,int *yystacksize);
...
@@ -664,7 +664,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b,int *yystacksize);
%type <ha_rkey_mode> handler_rkey_mode
%type <ha_rkey_mode> handler_rkey_mode
%type <cast_type> cast_type
cast_type_finalize
%type <cast_type> cast_type
%type <udf_type> udf_func_type
%type <udf_type> udf_func_type
...
@@ -3082,11 +3082,7 @@ in_sum_expr:
...
@@ -3082,11 +3082,7 @@ in_sum_expr:
$$= $3;
$$= $3;
};
};
cast_type_init:
cast_type:
{ Lex->charset= NULL; Lex->length= (char*)0; }
;
cast_type_finalize:
BINARY { $$=ITEM_CAST_BINARY; }
BINARY { $$=ITEM_CAST_BINARY; }
| CHAR_SYM opt_len opt_binary { $$=ITEM_CAST_CHAR; }
| CHAR_SYM opt_len opt_binary { $$=ITEM_CAST_CHAR; }
| NCHAR_SYM opt_len { $$=ITEM_CAST_CHAR; Lex->charset= national_charset_info; }
| NCHAR_SYM opt_len { $$=ITEM_CAST_CHAR; Lex->charset= national_charset_info; }
...
@@ -3099,10 +3095,6 @@ cast_type_finalize:
...
@@ -3099,10 +3095,6 @@ cast_type_finalize:
| DATETIME { $$=ITEM_CAST_DATETIME; }
| DATETIME { $$=ITEM_CAST_DATETIME; }
;
;
cast_type:
cast_type_init cast_type_finalize { $$= $2; }
;
expr_list:
expr_list:
{ Select->expr_list.push_front(new List<Item>); }
{ Select->expr_list.push_front(new List<Item>); }
expr_list2
expr_list2
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment