mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge mysql.com:/d2/hf/common/my50-common
into mysql.com:/d2/hf/common/my51-common
This commit is contained in:
@@ -306,7 +306,11 @@ int emb_read_binary_rows(MYSQL_STMT *stmt)
|
|||||||
{
|
{
|
||||||
MYSQL_DATA *data;
|
MYSQL_DATA *data;
|
||||||
if (!(data= emb_read_rows(stmt->mysql, 0, 0)))
|
if (!(data= emb_read_rows(stmt->mysql, 0, 0)))
|
||||||
|
{
|
||||||
|
set_stmt_errmsg(stmt, stmt->mysql->net.last_error,
|
||||||
|
stmt->mysql->net.last_errno, stmt->mysql->net.sqlstate);
|
||||||
return 1;
|
return 1;
|
||||||
|
}
|
||||||
stmt->result= *data;
|
stmt->result= *data;
|
||||||
my_free((char *) data, MYF(0));
|
my_free((char *) data, MYF(0));
|
||||||
set_stmt_errmsg(stmt, stmt->mysql->net.last_error,
|
set_stmt_errmsg(stmt, stmt->mysql->net.last_error,
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
# Embedded server doesn't support external clients
|
||||||
|
--source include/not_embedded.inc
|
||||||
#
|
#
|
||||||
# Test "mysqladmin ping"
|
# Test "mysqladmin ping"
|
||||||
#
|
#
|
||||||
|
@@ -1253,7 +1253,6 @@ static int mysql_test_select(Prepared_statement *stmt,
|
|||||||
|
|
||||||
lex->select_lex.context.resolve_in_select_list= TRUE;
|
lex->select_lex.context.resolve_in_select_list= TRUE;
|
||||||
|
|
||||||
#ifndef NO_EMBEDDED_ACCESS_CHECKS
|
|
||||||
ulong privilege= lex->exchange ? SELECT_ACL | FILE_ACL : SELECT_ACL;
|
ulong privilege= lex->exchange ? SELECT_ACL | FILE_ACL : SELECT_ACL;
|
||||||
if (tables)
|
if (tables)
|
||||||
{
|
{
|
||||||
@@ -1262,7 +1261,6 @@ static int mysql_test_select(Prepared_statement *stmt,
|
|||||||
}
|
}
|
||||||
else if (check_access(thd, privilege, any_db,0,0,0,0))
|
else if (check_access(thd, privilege, any_db,0,0,0,0))
|
||||||
goto error;
|
goto error;
|
||||||
#endif
|
|
||||||
|
|
||||||
if (!lex->result && !(lex->result= new (stmt->mem_root) select_send))
|
if (!lex->result && !(lex->result= new (stmt->mem_root) select_send))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user