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
e1a7fb7b
Commit
e1a7fb7b
authored
Oct 24, 2006
by
holyfoot/abotchkov@mysql.com/production.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/usersnfs/abotchkov/mysql-4.1-opt
into mysql.com:/usersnfs/abotchkov/mysql-4.1-opt1
parents
dc0d6805
f95645ac
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
include/mysql.h
include/mysql.h
+0
-6
libmysqld/lib_sql.cc
libmysqld/lib_sql.cc
+5
-5
sql/sql_class.h
sql/sql_class.h
+6
-0
No files found.
include/mysql.h
View file @
e1a7fb7b
...
@@ -270,12 +270,6 @@ typedef struct st_mysql
...
@@ -270,12 +270,6 @@ typedef struct st_mysql
from mysql_stmt_close if close had to cancel result set of this object.
from mysql_stmt_close if close had to cancel result set of this object.
*/
*/
my_bool
*
unbuffered_fetch_owner
;
my_bool
*
unbuffered_fetch_owner
;
/*
In embedded server it points to the statement that is processed
in the current query. We store some results directly in statement
fields then.
*/
struct
st_mysql_stmt
*
current_stmt
;
}
MYSQL
;
}
MYSQL
;
typedef
struct
st_mysql_res
{
typedef
struct
st_mysql_res
{
...
...
libmysqld/lib_sql.cc
View file @
e1a7fb7b
...
@@ -94,7 +94,7 @@ emb_advanced_command(MYSQL *mysql, enum enum_server_command command,
...
@@ -94,7 +94,7 @@ emb_advanced_command(MYSQL *mysql, enum enum_server_command command,
mysql
->
affected_rows
=
~
(
my_ulonglong
)
0
;
mysql
->
affected_rows
=
~
(
my_ulonglong
)
0
;
mysql
->
field_count
=
0
;
mysql
->
field_count
=
0
;
net
->
last_errno
=
0
;
net
->
last_errno
=
0
;
mysql
->
current_stmt
=
stmt
;
thd
->
current_stmt
=
stmt
;
thd
->
store_globals
();
// Fix if more than one connect
thd
->
store_globals
();
// Fix if more than one connect
/*
/*
...
@@ -644,8 +644,8 @@ bool Protocol::send_fields(List<Item> *list, uint flag)
...
@@ -644,8 +644,8 @@ bool Protocol::send_fields(List<Item> *list, uint flag)
DBUG_RETURN
(
0
);
DBUG_RETURN
(
0
);
field_count
=
list
->
elements
;
field_count
=
list
->
elements
;
field_alloc
=
mysql
->
current_stmt
?
&
mysql
->
current_stmt
->
mem_root
:
field_alloc
=
thd
->
current_stmt
?
&
thd
->
current_stmt
->
mem_root
:
&
mysql
->
field_alloc
;
&
mysql
->
field_alloc
;
if
(
!
(
client_field
=
mysql
->
fields
=
if
(
!
(
client_field
=
mysql
->
fields
=
(
MYSQL_FIELD
*
)
alloc_root
(
field_alloc
,
(
MYSQL_FIELD
*
)
alloc_root
(
field_alloc
,
sizeof
(
MYSQL_FIELD
)
*
field_count
)))
sizeof
(
MYSQL_FIELD
)
*
field_count
)))
...
@@ -751,8 +751,8 @@ bool Protocol_prep::write()
...
@@ -751,8 +751,8 @@ bool Protocol_prep::write()
{
{
MYSQL
*
mysql
=
thd
->
mysql
;
MYSQL
*
mysql
=
thd
->
mysql
;
if
(
mysql
->
current_stmt
)
if
(
thd
->
current_stmt
)
data
=
&
mysql
->
current_stmt
->
result
;
data
=
&
thd
->
current_stmt
->
result
;
else
else
{
{
if
(
!
(
data
=
(
MYSQL_DATA
*
)
my_malloc
(
sizeof
(
MYSQL_DATA
),
if
(
!
(
data
=
(
MYSQL_DATA
*
)
my_malloc
(
sizeof
(
MYSQL_DATA
),
...
...
sql/sql_class.h
View file @
e1a7fb7b
...
@@ -686,6 +686,12 @@ public:
...
@@ -686,6 +686,12 @@ public:
char
*
extra_data
;
char
*
extra_data
;
ulong
extra_length
;
ulong
extra_length
;
String
query_rest
;
String
query_rest
;
/*
In embedded server it points to the statement that is processed
in the current query. We store some results directly in statement
fields then.
*/
struct
st_mysql_stmt
*
current_stmt
;
#endif
#endif
NET
net
;
// client connection descriptor
NET
net
;
// client connection descriptor
MEM_ROOT
warn_root
;
// For warnings and errors
MEM_ROOT
warn_root
;
// For warnings and errors
...
...
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