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
8f2c2757
Commit
8f2c2757
authored
Sep 10, 2003
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge abelkin@bk-internal.mysql.com:/home/bk/mysql-4.1
into sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
parents
42eb4349
af1c7280
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
10 deletions
+7
-10
libmysqld/lib_sql.cc
libmysqld/lib_sql.cc
+6
-7
libmysqld/libmysqld.c
libmysqld/libmysqld.c
+1
-3
No files found.
libmysqld/lib_sql.cc
View file @
8f2c2757
...
@@ -80,10 +80,8 @@ emb_advanced_command(MYSQL *mysql, enum enum_server_command command,
...
@@ -80,10 +80,8 @@ emb_advanced_command(MYSQL *mysql, enum enum_server_command command,
if
((
net
->
last_errno
=
thd
->
net
.
last_errno
))
if
((
net
->
last_errno
=
thd
->
net
.
last_errno
))
{
{
memcpy
(
net
->
last_error
,
net
->
last_error
,
memcpy
(
net
->
last_error
,
thd
->
net
.
last_error
,
sizeof
(
net
->
last_error
));
sizeof
(
net
->
last_error
));
memcpy
(
net
->
sqlstate
,
thd
->
net
.
sqlstate
,
sizeof
(
net
->
sqlstate
));
memcpy
(
net
->
sqlstate
,
thd
->
net
.
sqlstate
,
sizeof
(
net
->
sqlstate
));
}
}
mysql
->
warning_count
=
((
THD
*
)
mysql
->
thd
)
->
total_warn_count
;
mysql
->
warning_count
=
((
THD
*
)
mysql
->
thd
)
->
total_warn_count
;
return
result
;
return
result
;
...
@@ -482,15 +480,16 @@ bool Protocol_simple::store_null()
...
@@ -482,15 +480,16 @@ bool Protocol_simple::store_null()
bool
Protocol
::
net_store_data
(
const
char
*
from
,
uint
length
)
bool
Protocol
::
net_store_data
(
const
char
*
from
,
uint
length
)
{
{
if
(
!
(
*
next_field
=
alloc_root
(
alloc
,
length
+
1
)))
char
*
field_buf
;
if
(
!
(
field_buf
=
alloc_root
(
alloc
,
length
+
sizeof
(
uint
))))
return
true
;
return
true
;
*
(
uint
*
)
field_buf
=
length
;
*
next_field
=
field_buf
+
sizeof
(
uint
);
memcpy
(
*
next_field
,
from
,
length
);
memcpy
(
*
next_field
,
from
,
length
);
(
*
next_field
)[
length
]
=
0
;
if
(
next_mysql_field
->
max_length
<
length
)
if
(
next_mysql_field
->
max_length
<
length
)
next_mysql_field
->
max_length
=
length
;
next_mysql_field
->
max_length
=
length
;
++
next_field
;
++
next_field
;
++
next_mysql_field
;
++
next_mysql_field
;
return
false
;
return
false
;
}
}
...
...
libmysqld/libmysqld.c
View file @
8f2c2757
...
@@ -176,9 +176,7 @@ static void STDCALL emb_fetch_lengths(ulong *to, MYSQL_ROW column, uint field_co
...
@@ -176,9 +176,7 @@ static void STDCALL emb_fetch_lengths(ulong *to, MYSQL_ROW column, uint field_co
MYSQL_ROW
end
;
MYSQL_ROW
end
;
for
(
end
=
column
+
field_count
;
column
!=
end
;
column
++
,
to
++
)
for
(
end
=
column
+
field_count
;
column
!=
end
;
column
++
,
to
++
)
{
*
to
=
*
column
?
*
(
uint
*
)((
*
column
)
-
sizeof
(
uint
))
:
0
;
*
to
=
*
column
?
strlen
(
*
column
)
:
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