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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
c9ab4d61
Commit
c9ab4d61
authored
Nov 18, 2005
by
evgen@moonbone.local
Browse files
Options
Browse Files
Download
Plain Diff
Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0
into moonbone.local:/work/13622-bug-5.0-mysql
parents
159bf883
badc2668
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletion
+18
-1
mysql-test/r/view.result
mysql-test/r/view.result
+8
-0
mysql-test/t/view.test
mysql-test/t/view.test
+9
-0
sql/sql_view.cc
sql/sql_view.cc
+1
-1
No files found.
mysql-test/r/view.result
View file @
c9ab4d61
...
...
@@ -2338,6 +2338,14 @@ id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY t3 ALL NULL NULL NULL NULL 3 Using where
DROP VIEW v1,v2;
DROP TABLE t1,t2,t3;
create table t1 (f1 int);
create view v1 as select t1.f1 as '123
456' from t1;
select * from v1;
123
456
drop view v1;
drop table t1;
create table t1 (f1 int, f2 int);
insert into t1 values(1,1),(1,2),(1,3);
create view v1 as select f1 ,group_concat(f2 order by f2 asc) from t1 group by f1;
...
...
mysql-test/t/view.test
View file @
c9ab4d61
...
...
@@ -2188,6 +2188,15 @@ DROP VIEW v1,v2;
DROP
TABLE
t1
,
t2
,
t3
;
#
# Bug #13622 Wrong view .frm created if some field's alias contain \n
#
create
table
t1
(
f1
int
);
create
view
v1
as
select
t1
.
f1
as
'123
456'
from
t1
;
select
*
from
v1
;
drop
view
v1
;
drop
table
t1
;
# Bug #14466 lost sort order in GROUP_CONCAT() in a view
#
create
table
t1
(
f1
int
,
f2
int
);
...
...
sql/sql_view.cc
View file @
c9ab4d61
...
...
@@ -495,7 +495,7 @@ static const int num_view_backups= 3;
static
File_option
view_parameters
[]
=
{{{(
char
*
)
STRING_WITH_LEN
(
"query"
)},
offsetof
(
TABLE_LIST
,
query
),
FILE_OPTIONS_STRING
},
FILE_OPTIONS_
E
STRING
},
{{(
char
*
)
STRING_WITH_LEN
(
"md5"
)},
offsetof
(
TABLE_LIST
,
md5
),
FILE_OPTIONS_STRING
},
...
...
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