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
0d9046ec
Commit
0d9046ec
authored
Aug 16, 2007
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Post-merge fix.
parent
59a11546
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
75 additions
and
2 deletions
+75
-2
mysql-test/r/select.result
mysql-test/r/select.result
+2
-2
tests/mysql_client_test.c
tests/mysql_client_test.c
+73
-0
No files found.
mysql-test/r/select.result
View file @
0d9046ec
...
@@ -4039,8 +4039,8 @@ join_2.c1,
...
@@ -4039,8 +4039,8 @@ join_2.c1,
join_7.c1,
join_7.c1,
join_1.c1,
join_1.c1,
join_0.c1;
join_0.c1;
id select_type table type possible_keys key key_len ref rows Extra
id select_type table type possible_keys key key_len ref rows
filtered
Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL
NULL
Impossible WHERE noticed after reading const tables
Warnings:
Warnings:
Note 1003 select '0' AS `c1` from `test`.`t1` `join_0` join `test`.`t1` `join_1` join `test`.`t1` `join_2` join `test`.`t1` `join_3` join `test`.`t1` `join_4` join `test`.`t1` `join_5` join `test`.`t1` `join_6` join `test`.`t1` `join_7` where 0 group by '0','0','0','0','0'
Note 1003 select '0' AS `c1` from `test`.`t1` `join_0` join `test`.`t1` `join_1` join `test`.`t1` `join_2` join `test`.`t1` `join_3` join `test`.`t1` `join_4` join `test`.`t1` `join_5` join `test`.`t1` `join_6` join `test`.`t1` `join_7` where 0 group by '0','0','0','0','0'
SHOW WARNINGS;
SHOW WARNINGS;
...
...
tests/mysql_client_test.c
View file @
0d9046ec
...
@@ -16269,6 +16269,78 @@ static void test_bug27592()
...
@@ -16269,6 +16269,78 @@ static void test_bug27592()
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
}
}
static
void
test_bug29948
()
{
MYSQL
*
dbc
=
NULL
;
MYSQL_STMT
*
stmt
=
NULL
;
MYSQL_BIND
bind
;
int
res
=
0
;
my_bool
auto_reconnect
=
1
,
error
=
0
,
is_null
=
0
;
char
kill_buf
[
20
];
const
char
*
query
;
int
buf
;
unsigned
long
length
,
cursor_type
;
dbc
=
mysql_init
(
NULL
);
DIE_UNLESS
(
dbc
);
mysql_options
(
dbc
,
MYSQL_OPT_RECONNECT
,
(
char
*
)
&
auto_reconnect
);
if
(
!
mysql_real_connect
(
dbc
,
opt_host
,
opt_user
,
opt_password
,
current_db
,
opt_port
,
opt_unix_socket
,
(
CLIENT_FOUND_ROWS
|
CLIENT_MULTI_STATEMENTS
|
CLIENT_MULTI_RESULTS
)))
{
printf
(
"connection failed: %s (%d)"
,
mysql_error
(
dbc
),
mysql_errno
(
dbc
));
exit
(
1
);
}
bind
.
buffer_type
=
MYSQL_TYPE_LONG
;
bind
.
buffer
=
(
char
*
)
&
buf
;
bind
.
is_null
=
&
is_null
;
bind
.
error
=
&
error
;
bind
.
length
=
&
length
;
res
=
mysql_query
(
dbc
,
"DROP TABLE IF EXISTS t1"
);
myquery
(
res
);
res
=
mysql_query
(
dbc
,
"CREATE TABLE t1 (a INT)"
);
myquery
(
res
);
res
=
mysql_query
(
dbc
,
"INSERT INTO t1 VALUES(1)"
);
myquery
(
res
);
stmt
=
mysql_stmt_init
(
dbc
);
check_stmt
(
stmt
);
cursor_type
=
CURSOR_TYPE_READ_ONLY
;
res
=
mysql_stmt_attr_set
(
stmt
,
STMT_ATTR_CURSOR_TYPE
,
(
void
*
)
&
cursor_type
);
myquery
(
res
);
query
=
"SELECT * from t1 where a=?"
;
res
=
mysql_stmt_prepare
(
stmt
,
query
,
strlen
(
query
));
myquery
(
res
);
res
=
mysql_stmt_bind_param
(
stmt
,
&
bind
);
myquery
(
res
);
res
=
mysql_stmt_execute
(
stmt
);
check_execute
(
stmt
,
res
);
res
=
mysql_stmt_bind_result
(
stmt
,
&
bind
);
check_execute
(
stmt
,
res
);
sprintf
(
kill_buf
,
"kill %ld"
,
dbc
->
thread_id
);
mysql_query
(
dbc
,
kill_buf
);
res
=
mysql_stmt_store_result
(
stmt
);
DIE_UNLESS
(
res
);
mysql_stmt_free_result
(
stmt
);
mysql_stmt_close
(
stmt
);
mysql_query
(
dbc
,
"DROP TABLE t1"
);
mysql_close
(
dbc
);
}
/*
/*
...
@@ -16670,6 +16742,7 @@ static struct my_tests_st my_tests[]= {
...
@@ -16670,6 +16742,7 @@ static struct my_tests_st my_tests[]= {
{
"test_bug28505"
,
test_bug28505
},
{
"test_bug28505"
,
test_bug28505
},
{
"test_bug28934"
,
test_bug28934
},
{
"test_bug28934"
,
test_bug28934
},
{
"test_bug27592"
,
test_bug27592
},
{
"test_bug27592"
,
test_bug27592
},
{
"test_bug29948"
,
test_bug29948
},
{
"test_bug29687"
,
test_bug29687
},
{
"test_bug29687"
,
test_bug29687
},
{
"test_bug29692"
,
test_bug29692
},
{
"test_bug29692"
,
test_bug29692
},
{
"test_bug29306"
,
test_bug29306
},
{
"test_bug29306"
,
test_bug29306
},
...
...
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