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
3b9828c7
Commit
3b9828c7
authored
Mar 01, 2002
by
Sinisa@sinisa.nasamreza.org
Browse files
Options
Browse Files
Download
Plain Diff
Merge sinisa@work.mysql.com:/home/bk/mysql-4.1
into sinisa.nasamreza.org:/mnt/hdc/Sinisa/mysql-4.1
parents
c732ed83
cdddb654
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
5 deletions
+27
-5
.bzrignore
.bzrignore
+1
-0
libmysql/libmysql.c
libmysql/libmysql.c
+1
-1
mysql-test/r/union.result
mysql-test/r/union.result
+15
-0
mysql-test/t/union.test
mysql-test/t/union.test
+6
-0
sql/sql_yacc.yy
sql/sql_yacc.yy
+4
-4
No files found.
.bzrignore
View file @
3b9828c7
...
...
@@ -465,3 +465,4 @@ vio/test-sslserver
vio/viotest-ssl
libmysqld/gstream.cc
libmysqld/spatial.cc
sql/sql_yacc.yy.orig
libmysql/libmysql.c
View file @
3b9828c7
...
...
@@ -737,7 +737,7 @@ static void mysql_read_default_options(struct st_mysql_options *options,
*
end
=
0
;
/* Remove '=' */
}
/* Change all '_' in variable name to '-' */
for
(
end
=
*
option
;
(
end
=
strcend
(
end
,
'_'
))
;
)
for
(
end
=
*
option
;
(
end
=
strcend
(
end
,
'_'
))
&&
*
end
;
)
*
end
=
'-'
;
switch
(
find_type
(
*
option
+
2
,
&
option_types
,
2
))
{
case
1
:
/* port */
...
...
mysql-test/r/union.result
View file @
3b9828c7
...
...
@@ -86,6 +86,21 @@ explain select a,b from t1 union all select a,b from t2;
table type possible_keys key key_len ref rows Extra
t1 ALL NULL NULL NULL NULL 4
t2 ALL NULL NULL NULL NULL 4
explain select xx from t1 union select 1;
Unknown column 'xx' in 'field list'
explain select a,b from t1 union select 1;
table type possible_keys key key_len ref rows Extra
t1 ALL NULL NULL NULL NULL 4
0 0 No tables used
explain select 1 union select a,b from t1 union select 1;
table type possible_keys key key_len ref rows Extra
0 0 No tables used
t1 ALL NULL NULL NULL NULL 4
0 0 No tables used
explain select a,b from t1 union select 1 limit 0;
table type possible_keys key key_len ref rows Extra
t1 ALL NULL NULL NULL NULL 4
0 0 Impossible WHERE
select a,b from t1 into outfile 'skr' union select a,b from t2;
Wrong usage of UNION and INTO
select a,b from t1 order by a union select a,b from t2;
...
...
mysql-test/t/union.test
View file @
3b9828c7
...
...
@@ -24,6 +24,12 @@ select 't1',b,count(*) from t1 group by b UNION select 't2',b,count(*) from t2 g
# Test some error conditions with UNION
explain
select
a
,
b
from
t1
union
all
select
a
,
b
from
t2
;
--
error
1054
explain
select
xx
from
t1
union
select
1
;
explain
select
a
,
b
from
t1
union
select
1
;
explain
select
1
union
select
a
,
b
from
t1
union
select
1
;
explain
select
a
,
b
from
t1
union
select
1
limit
0
;
--
error
1221
select
a
,
b
from
t1
into
outfile
'skr'
union
select
a
,
b
from
t2
;
...
...
sql/sql_yacc.yy
View file @
3b9828c7
...
...
@@ -2017,7 +2017,7 @@ opt_else:
| ELSE expr { $$= $2; }
when_list:
{ Select->when_list.push_front(new List<Item>) }
{ Select->when_list.push_front(new List<Item>)
;
}
when_list2
{ $$= Select->when_list.pop(); }
...
...
@@ -2120,7 +2120,7 @@ opt_key_definition:
}
key_usage_list:
key_or_index { Select->interval_list.empty() } '(' key_usage_list2 ')'
key_or_index { Select->interval_list.empty()
;
} '(' key_usage_list2 ')'
{ $$= &Select->interval_list; }
key_usage_list2:
...
...
@@ -2726,7 +2726,7 @@ describe:
YYABORT;
}
opt_describe_column
| describe_command select { Lex->select_lex.options|= SELECT_DESCRIBE
};
| describe_command select { Lex->select_lex.options|= SELECT_DESCRIBE
; }
describe_command:
...
...
@@ -3166,7 +3166,7 @@ set:
lex->select->select_limit=lex->thd->default_select_limit;
lex->tx_isolation=lex->thd->tx_isolation;
lex->option_type=0;
lex->option_list.empty()
lex->option_list.empty()
;
}
option_value_list
...
...
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