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
823a630c
Commit
823a630c
authored
Mar 09, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge mronstrom@bk-internal.mysql.com:/home/bk/mysql-5.1-new
into zim.(none):/home/mikael/bug17947
parents
e8f1b6d9
4f3a18d5
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
39 additions
and
2 deletions
+39
-2
configure.in
configure.in
+1
-1
mysql-test/r/view.result
mysql-test/r/view.result
+14
-0
mysql-test/t/view.test
mysql-test/t/view.test
+14
-0
sql/item_cmpfunc.cc
sql/item_cmpfunc.cc
+2
-1
sql/sql_analyse.cc
sql/sql_analyse.cc
+2
-0
sql/sql_lex.cc
sql/sql_lex.cc
+1
-0
sql/sql_lex.h
sql/sql_lex.h
+4
-0
sql/sql_parse.cc
sql/sql_parse.cc
+1
-0
No files found.
configure.in
View file @
823a630c
...
@@ -214,7 +214,7 @@ AC_PROG_INSTALL
...
@@ -214,7 +214,7 @@ AC_PROG_INSTALL
test
-z
"
$INSTALL_SCRIPT
"
&&
INSTALL_SCRIPT
=
'${INSTALL_PROGRAM}'
test
-z
"
$INSTALL_SCRIPT
"
&&
INSTALL_SCRIPT
=
'${INSTALL_PROGRAM}'
# Not critical since the generated file is distributed
# Not critical since the generated file is distributed
AC_
PROG_YACC
AC_
CHECK_PROGS
(
YACC,
[
'bison -y -p MYSQL'
])
AC_CHECK_PROG
(
PDFMANUAL, pdftex, manual.pdf
)
AC_CHECK_PROG
(
PDFMANUAL, pdftex, manual.pdf
)
AC_CHECK_PROG
(
DVIS, tex, manual.dvi
)
AC_CHECK_PROG
(
DVIS, tex, manual.dvi
)
...
...
mysql-test/r/view.result
View file @
823a630c
...
@@ -2539,3 +2539,17 @@ drop view v1;
...
@@ -2539,3 +2539,17 @@ drop view v1;
//
//
View Create View
View Create View
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select sql_no_cache `test`.`t1`.`id` AS `id` from `t1`
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select sql_no_cache `test`.`t1`.`id` AS `id` from `t1`
create table t1(f1 int, f2 int);
create view v1 as select ta.f1 as a, tb.f1 as b from t1 ta, t1 tb where ta.f1=tb
.f1 and ta.f2=tb.f2;
insert into t1 values(1,1),(2,2);
create view v2 as select * from v1 where a > 1 with check option;
select * from v2;
a b
2 2
update v2 set b=3 where a=2;
select * from v2;
a b
3 3
drop view v2, v1;
drop table t1;
mysql-test/t/view.test
View file @
823a630c
...
@@ -2390,3 +2390,17 @@ show create view v1;
...
@@ -2390,3 +2390,17 @@ show create view v1;
drop
view
v1
;
drop
view
v1
;
//
//
delimiter
;
//
delimiter
;
//
#
# Bug#17726 Not checked empty list caused endless loop
#
create
table
t1
(
f1
int
,
f2
int
);
create
view
v1
as
select
ta
.
f1
as
a
,
tb
.
f1
as
b
from
t1
ta
,
t1
tb
where
ta
.
f1
=
tb
.
f1
and
ta
.
f2
=
tb
.
f2
;
insert
into
t1
values
(
1
,
1
),(
2
,
2
);
create
view
v2
as
select
*
from
v1
where
a
>
1
with
check
option
;
select
*
from
v2
;
update
v2
set
b
=
3
where
a
=
2
;
select
*
from
v2
;
drop
view
v2
,
v1
;
drop
table
t1
;
sql/item_cmpfunc.cc
View file @
823a630c
...
@@ -2547,7 +2547,8 @@ Item_cond::fix_fields(THD *thd, Item **ref)
...
@@ -2547,7 +2547,8 @@ Item_cond::fix_fields(THD *thd, Item **ref)
{
{
table_map
tmp_table_map
;
table_map
tmp_table_map
;
while
(
item
->
type
()
==
Item
::
COND_ITEM
&&
while
(
item
->
type
()
==
Item
::
COND_ITEM
&&
((
Item_cond
*
)
item
)
->
functype
()
==
functype
())
((
Item_cond
*
)
item
)
->
functype
()
==
functype
()
&&
!
((
Item_cond
*
)
item
)
->
list
.
is_empty
())
{
// Identical function
{
// Identical function
li
.
replace
(((
Item_cond
*
)
item
)
->
list
);
li
.
replace
(((
Item_cond
*
)
item
)
->
list
);
((
Item_cond
*
)
item
)
->
list
.
empty
();
((
Item_cond
*
)
item
)
->
list
.
empty
();
...
...
sql/sql_analyse.cc
View file @
823a630c
...
@@ -27,6 +27,8 @@
...
@@ -27,6 +27,8 @@
#pragma implementation // gcc: Class implementation
#pragma implementation // gcc: Class implementation
#endif
#endif
#define MYSQL_LEX 1
#include "mysql_priv.h"
#include "mysql_priv.h"
#include "procedure.h"
#include "procedure.h"
#include "sql_analyse.h"
#include "sql_analyse.h"
...
...
sql/sql_lex.cc
View file @
823a630c
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
/* A lexical scanner on a temporary buffer with a yacc interface */
/* A lexical scanner on a temporary buffer with a yacc interface */
#define MYSQL_LEX 1
#include "mysql_priv.h"
#include "mysql_priv.h"
#include "item_create.h"
#include "item_create.h"
#include <m_ctype.h>
#include <m_ctype.h>
...
...
sql/sql_lex.h
View file @
823a630c
...
@@ -41,8 +41,12 @@ class Event_timed;
...
@@ -41,8 +41,12 @@ class Event_timed;
#define LEX_YYSTYPE void *
#define LEX_YYSTYPE void *
#else
#else
#include "lex_symbol.h"
#include "lex_symbol.h"
#if MYSQL_LEX
#include "sql_yacc.h"
#include "sql_yacc.h"
#define LEX_YYSTYPE YYSTYPE *
#define LEX_YYSTYPE YYSTYPE *
#else
#define LEX_YYSTYPE void *
#endif
#endif
#endif
#endif
#endif
...
...
sql/sql_parse.cc
View file @
823a630c
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
along with this program; if not, write to the Free Software
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#define MYSQL_LEX 1
#include "mysql_priv.h"
#include "mysql_priv.h"
#include "sql_repl.h"
#include "sql_repl.h"
#include "rpl_filter.h"
#include "rpl_filter.h"
...
...
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