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
4cf0a5ee
Commit
4cf0a5ee
authored
Oct 19, 2006
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge neptunus.(none):/home/msvensson/mysql/bug17039/my50-bug17039
into neptunus.(none):/home/msvensson/mysql/mysql-5.0-maint
parents
722aec24
3a1e9009
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
2 deletions
+27
-2
sql/sql_union.cc
sql/sql_union.cc
+13
-2
tests/mysql_client_test.c
tests/mysql_client_test.c
+14
-0
No files found.
sql/sql_union.cc
View file @
4cf0a5ee
...
...
@@ -689,7 +689,17 @@ bool st_select_lex_unit::change_result(select_subselect *result,
List
<
Item
>
*
st_select_lex_unit
::
get_unit_column_types
()
{
bool
is_union
=
test
(
first_select
()
->
next_select
());
SELECT_LEX
*
sl
=
first_select
();
bool
is_union
=
test
(
sl
->
next_select
());
bool
is_procedure
=
test
(
sl
->
join
->
procedure
);
if
(
is_procedure
)
{
/* Types for "SELECT * FROM t1 procedure analyse()"
are generated during execute */
return
&
sl
->
join
->
procedure_fields_list
;
}
if
(
is_union
)
{
...
...
@@ -697,7 +707,8 @@ List<Item> *st_select_lex_unit::get_unit_column_types()
/* Types are generated during prepare */
return
&
types
;
}
return
&
first_select
()
->
item_list
;
return
&
sl
->
item_list
;
}
bool
st_select_lex
::
cleanup
()
...
...
tests/mysql_client_test.c
View file @
4cf0a5ee
...
...
@@ -11977,6 +11977,19 @@ static void test_cursors_with_union()
fetch_n
(
queries
,
sizeof
(
queries
)
/
sizeof
(
*
queries
),
USE_STORE_RESULT
);
}
static
void
test_cursors_with_procedure
()
{
const
char
*
queries
[]
=
{
"SELECT * FROM t1 procedure analyse()"
};
myheader
(
"test_cursors_with_procedure"
);
fetch_n
(
queries
,
sizeof
(
queries
)
/
sizeof
(
*
queries
),
USE_ROW_BY_ROW_FETCH
);
fetch_n
(
queries
,
sizeof
(
queries
)
/
sizeof
(
*
queries
),
USE_STORE_RESULT
);
}
/*
Altough mysql_create_db(), mysql_rm_db() are deprecated since 4.0 they
should not crash server and should not hang in case of errors.
...
...
@@ -15501,6 +15514,7 @@ static struct my_tests_st my_tests[]= {
{
"test_view_insert_fields"
,
test_view_insert_fields
},
{
"test_basic_cursors"
,
test_basic_cursors
},
{
"test_cursors_with_union"
,
test_cursors_with_union
},
{
"test_cursors_with_procedure"
,
test_cursors_with_procedure
},
{
"test_truncation"
,
test_truncation
},
{
"test_truncation_option"
,
test_truncation_option
},
{
"test_client_character_set"
,
test_client_character_set
},
...
...
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