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
36667b6a
Commit
36667b6a
authored
Sep 02, 2004
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed printing of characters casting operartion (BUG#5264)
parent
d1b667bd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
mysql-test/r/view.result
mysql-test/r/view.result
+8
-0
mysql-test/t/view.test
mysql-test/t/view.test
+8
-0
sql/item_timefunc.cc
sql/item_timefunc.cc
+1
-1
No files found.
mysql-test/r/view.result
View file @
36667b6a
...
...
@@ -1238,3 +1238,11 @@ c
4
drop view v1;
drop table t1;
create view v1 as select cast(1 as char(3));
show create view v1;
Table Create Table
v1 CREATE VIEW `test`.`v1` AS select cast(1 as char(3) charset latin1) AS `cast(1 as char(3))`
select * from v1;
cast(1 as char(3))
1
drop view v1;
mysql-test/t/view.test
View file @
36667b6a
...
...
@@ -1188,3 +1188,11 @@ create view v1(c) as select a+1 from t1 where b >= 4;
select
c
from
v1
where
exists
(
select
*
from
t1
where
a
=
2
and
b
=
c
);
drop
view
v1
;
drop
table
t1
;
#
# view with cast operation
#
create
view
v1
as
select
cast
(
1
as
char
(
3
));
show
create
view
v1
;
select
*
from
v1
;
drop
view
v1
;
sql/item_timefunc.cc
View file @
36667b6a
...
...
@@ -2011,7 +2011,7 @@ void Item_char_typecast::print(String *str)
if
(
cast_cs
)
{
str
->
append
(
" charset "
,
9
);
str
->
append
(
cast_cs
->
name
);
str
->
append
(
cast_cs
->
cs
name
);
}
str
->
append
(
')'
);
}
...
...
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