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
48d761ae
Commit
48d761ae
authored
Sep 27, 2007
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: row_mysql_store_blob_ref(): Change the type of the parameter
"data" from byte* to const void*.
parent
fc608351
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
10 deletions
+15
-10
include/row0mysql.h
include/row0mysql.h
+10
-5
row/row0mysql.c
row/row0mysql.c
+5
-5
No files found.
include/row0mysql.h
View file @
48d761ae
...
...
@@ -63,12 +63,17 @@ Stores a reference to a BLOB in the MySQL format. */
void
row_mysql_store_blob_ref
(
/*=====================*/
byte
*
dest
,
/* in: where to store */
ulint
col_len
,
/* in: dest buffer size: determines into
byte
*
dest
,
/* in: where to store */
ulint
col_len
,
/* in: dest buffer size: determines into
how many bytes the BLOB length is stored,
this may vary from 1 to 4 bytes */
byte
*
data
,
/* in: BLOB data */
ulint
len
);
/* in: BLOB length */
the space for the length may vary from 1
to 4 bytes */
const
void
*
data
,
/* in: BLOB data; if the value to store
is SQL NULL this should be NULL pointer */
ulint
len
);
/* in: BLOB length; if the value to store
is SQL NULL this should be 0; remember
also to set the NULL bit in the MySQL record
header! */
/***********************************************************************
Reads a reference to a BLOB in the MySQL format. */
...
...
row/row0mysql.c
View file @
48d761ae
...
...
@@ -180,14 +180,14 @@ Stores a reference to a BLOB in the MySQL format. */
void
row_mysql_store_blob_ref
(
/*=====================*/
byte
*
dest
,
/* in: where to store */
ulint
col_len
,
/* in: dest buffer size: determines into
byte
*
dest
,
/* in: where to store */
ulint
col_len
,
/* in: dest buffer size: determines into
how many bytes the BLOB length is stored,
the space for the length may vary from 1
to 4 bytes */
byte
*
data
,
/* in: BLOB data; if the value to store
const
void
*
data
,
/* in: BLOB data; if the value to store
is SQL NULL this should be NULL pointer */
ulint
len
)
/* in: BLOB length; if the value to store
ulint
len
)
/* in: BLOB length; if the value to store
is SQL NULL this should be 0; remember
also to set the NULL bit in the MySQL record
header! */
...
...
@@ -208,7 +208,7 @@ row_mysql_store_blob_ref(
mach_write_to_n_little_endian
(
dest
,
col_len
-
8
,
len
);
ut_memcpy
(
dest
+
col_len
-
8
,
&
data
,
sizeof
(
byte
*
)
);
memcpy
(
dest
+
col_len
-
8
,
&
data
,
sizeof
data
);
}
/***********************************************************************
...
...
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