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
37abfebb
Commit
37abfebb
authored
Nov 15, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0
into sanja.is.com.ua:/home/bell/mysql/bk/work-bug6-5.0
parents
bb349787
baee965b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
1 deletion
+23
-1
mysql-test/r/view.result
mysql-test/r/view.result
+8
-0
mysql-test/t/view.test
mysql-test/t/view.test
+10
-0
sql/item.h
sql/item.h
+5
-1
No files found.
mysql-test/r/view.result
View file @
37abfebb
...
@@ -2385,3 +2385,11 @@ show create view v1;
...
@@ -2385,3 +2385,11 @@ show create view v1;
View Create View
View Create View
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY INVOKER VIEW `v1` AS select 1 AS `1`
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY INVOKER VIEW `v1` AS select 1 AS `1`
drop view v1;
drop view v1;
create table t1(f1 int, f2 int);
insert into t1 values (null, 10), (null,2);
create view v1 as select * from t1;
select f1, sum(f2) from v1 group by f1;
f1 sum(f2)
NULL 12
drop view v1;
drop table t1;
mysql-test/t/view.test
View file @
37abfebb
...
@@ -2253,3 +2253,13 @@ drop view v1;
...
@@ -2253,3 +2253,13 @@ drop view v1;
create
definer
=
current_user
sql
security
invoker
view
v1
as
select
1
;
create
definer
=
current_user
sql
security
invoker
view
v1
as
select
1
;
show
create
view
v1
;
show
create
view
v1
;
drop
view
v1
;
drop
view
v1
;
#
# Bug #14850 Item_ref's values wasn't updated
#
create
table
t1
(
f1
int
,
f2
int
);
insert
into
t1
values
(
null
,
10
),
(
null
,
2
);
create
view
v1
as
select
*
from
t1
;
select
f1
,
sum
(
f2
)
from
v1
group
by
f1
;
drop
view
v1
;
drop
table
t1
;
sql/item.h
View file @
37abfebb
...
@@ -1603,7 +1603,11 @@ class Item_ref :public Item_ident
...
@@ -1603,7 +1603,11 @@ class Item_ref :public Item_ident
void
make_field
(
Send_field
*
field
);
void
make_field
(
Send_field
*
field
);
bool
fix_fields
(
THD
*
,
Item
**
);
bool
fix_fields
(
THD
*
,
Item
**
);
int
save_in_field
(
Field
*
field
,
bool
no_conversions
);
int
save_in_field
(
Field
*
field
,
bool
no_conversions
);
void
save_org_in_field
(
Field
*
field
)
{
(
*
ref
)
->
save_org_in_field
(
field
);
}
void
save_org_in_field
(
Field
*
field
)
{
(
*
ref
)
->
save_org_in_field
(
field
);
null_value
=
(
*
ref
)
->
null_value
;
}
enum
Item_result
result_type
()
const
{
return
(
*
ref
)
->
result_type
();
}
enum
Item_result
result_type
()
const
{
return
(
*
ref
)
->
result_type
();
}
enum_field_types
field_type
()
const
{
return
(
*
ref
)
->
field_type
();
}
enum_field_types
field_type
()
const
{
return
(
*
ref
)
->
field_type
();
}
Field
*
get_tmp_table_field
()
Field
*
get_tmp_table_field
()
...
...
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