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
0bdb8fcd
Commit
0bdb8fcd
authored
Jul 18, 2006
by
jimw@rama.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-5.0-maint
into rama.(none):/home/jimw/my/mysql-5.0-17903
parents
2d43d067
30d7290c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
2 deletions
+25
-2
mysql-test/r/cast.result
mysql-test/r/cast.result
+11
-0
mysql-test/t/cast.test
mysql-test/t/cast.test
+13
-1
sql/sql_yacc.yy
sql/sql_yacc.yy
+1
-1
No files found.
mysql-test/r/cast.result
View file @
0bdb8fcd
...
...
@@ -381,3 +381,14 @@ DROP TABLE t1;
select cast(NULL as decimal(6)) as t1;
t1
NULL
set names latin1;
select hex(cast('a' as char(2) binary));
hex(cast('a' as char(2) binary))
61
select hex(cast('a' as binary(2)));
hex(cast('a' as binary(2)))
6100
select hex(cast('a' as char(2) binary));
hex(cast('a' as char(2) binary))
61
End of 5.0 tests
mysql-test/t/cast.test
View file @
0bdb8fcd
...
...
@@ -204,7 +204,19 @@ SELECT CAST(v AS DECIMAL), CAST(tt AS DECIMAL), CAST(t AS DECIMAL),
CAST
(
mt
AS
DECIMAL
),
CAST
(
lt
AS
DECIMAL
)
from
t1
;
DROP
TABLE
t1
;
# Bug @10237 (CAST(NULL DECIMAL) crashes server)
#
# Bug #10237 (CAST(NULL DECIMAL) crashes server)
#
select
cast
(
NULL
as
decimal
(
6
))
as
t1
;
#
# Bug #17903: cast to char results in binary
#
set
names
latin1
;
select
hex
(
cast
(
'a'
as
char
(
2
)
binary
));
select
hex
(
cast
(
'a'
as
binary
(
2
)));
select
hex
(
cast
(
'a'
as
char
(
2
)
binary
));
--
echo
End
of
5.0
tests
sql/sql_yacc.yy
View file @
0bdb8fcd
...
...
@@ -3089,7 +3089,7 @@ opt_bin_mod:
| BINARY { Lex->type|= BINCMP_FLAG; };
opt_bin_charset:
/* empty */ {
}
/* empty */ { Lex->charset= NULL;
}
| ASCII_SYM { Lex->charset=&my_charset_latin1; }
| UNICODE_SYM
{
...
...
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