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
1263e1f0
Commit
1263e1f0
authored
Jul 18, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merging
parent
5e849120
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
19 deletions
+6
-19
libmysql/libmysql.c
libmysql/libmysql.c
+3
-2
libmysqld/lib_sql.cc
libmysqld/lib_sql.cc
+0
-14
libmysqld/libmysqld.c
libmysqld/libmysqld.c
+1
-2
sql/sql_parse.cc
sql/sql_parse.cc
+1
-0
tests/mysql_client_test.c
tests/mysql_client_test.c
+1
-1
No files found.
libmysql/libmysql.c
View file @
1263e1f0
...
...
@@ -2699,7 +2699,8 @@ stmt_read_row_from_cursor(MYSQL_STMT *stmt, unsigned char **row)
int4store
(
buff
,
stmt
->
stmt_id
);
int4store
(
buff
+
4
,
stmt
->
prefetch_rows
);
/* number of rows to fetch */
if
((
*
mysql
->
methods
->
advanced_command
)(
mysql
,
COM_STMT_FETCH
,
buff
,
sizeof
(
buff
),
NullS
,
0
,
1
))
buff
,
sizeof
(
buff
),
NullS
,
0
,
1
,
NULL
))
{
set_stmt_errmsg
(
stmt
,
net
->
last_error
,
net
->
last_errno
,
net
->
sqlstate
);
return
1
;
...
...
@@ -4948,7 +4949,7 @@ static my_bool reset_stmt_handle(MYSQL_STMT *stmt, uint flags)
char
buff
[
MYSQL_STMT_HEADER
];
/* packet header: 4 bytes for stmt id */
int4store
(
buff
,
stmt
->
stmt_id
);
if
((
*
mysql
->
methods
->
advanced_command
)(
mysql
,
COM_STMT_RESET
,
buff
,
sizeof
(
buff
),
0
,
0
,
0
))
sizeof
(
buff
),
0
,
0
,
0
,
NULL
))
{
set_stmt_errmsg
(
stmt
,
mysql
->
net
.
last_error
,
mysql
->
net
.
last_errno
,
mysql
->
net
.
sqlstate
);
...
...
libmysqld/lib_sql.cc
View file @
1263e1f0
...
...
@@ -387,20 +387,6 @@ static MYSQL_RES * emb_store_result(MYSQL *mysql)
return
mysql_store_result
(
mysql
);
}
my_bool
emb_next_result
(
MYSQL
*
mysql
)
{
THD
*
thd
=
(
THD
*
)
mysql
->
thd
;
DBUG_ENTER
(
"emb_next_result"
);
if
(
emb_advanced_command
(
mysql
,
COM_QUERY
,
0
,
0
,
thd
->
query_rest
.
ptr
(),
thd
->
query_rest
.
length
(),
1
,
NULL
)
||
emb_mysql_read_query_result
(
mysql
))
DBUG_RETURN
(
1
);
DBUG_RETURN
(
0
);
/* No more results */
}
int
emb_read_change_user_result
(
MYSQL
*
mysql
,
char
*
buff
__attribute__
((
unused
)),
const
char
*
passwd
__attribute__
((
unused
)))
...
...
libmysqld/libmysqld.c
View file @
1263e1f0
...
...
@@ -164,7 +164,6 @@ mysql_real_connect(MYSQL *mysql,const char *host, const char *user,
port
=
0
;
unix_socket
=
0
;
db_name
=
db
?
my_strdup
(
db
,
MYF
(
MY_WME
))
:
NULL
;
/* Send client information for access check */
client_flag
|=
CLIENT_CAPABILITIES
;
...
...
@@ -175,7 +174,7 @@ mysql_real_connect(MYSQL *mysql,const char *host, const char *user,
client_flag
|=
CLIENT_CONNECT_WITH_DB
;
mysql
->
info_buffer
=
my_malloc
(
MYSQL_ERRMSG_SIZE
,
MYF
(
0
));
mysql
->
thd
=
create_embedded_thd
(
client_flag
,
db_name
);
mysql
->
thd
=
create_embedded_thd
(
client_flag
);
init_embedded_mysql
(
mysql
,
client_flag
);
...
...
sql/sql_parse.cc
View file @
1263e1f0
...
...
@@ -306,6 +306,7 @@ int check_user(THD *thd, enum enum_server_command command,
/* Send the error to the client */
net_send_error
(
thd
);
DBUG_RETURN
(
-
1
);
}
}
send_ok
(
thd
);
DBUG_RETURN
(
0
);
...
...
tests/mysql_client_test.c
View file @
1263e1f0
...
...
@@ -13100,7 +13100,7 @@ static void test_bug9478()
int4store
(
buff
,
stmt
->
stmt_id
);
buff
[
4
]
=
1
;
/* prefetch rows */
rc
=
((
*
mysql
->
methods
->
advanced_command
)(
mysql
,
COM_STMT_FETCH
,
buff
,
sizeof
(
buff
),
0
,
0
,
1
)
||
sizeof
(
buff
),
0
,
0
,
1
,
NULL
)
||
(
*
mysql
->
methods
->
read_query_result
)(
mysql
));
DIE_UNLESS
(
rc
);
if
(
!
opt_silent
&&
i
==
0
)
...
...
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