Commit 48d761ae authored by marko's avatar marko

branches/zip: row_mysql_store_blob_ref(): Change the type of the parameter

"data" from byte* to const void*.
parent fc608351
......@@ -64,11 +64,16 @@ void
row_mysql_store_blob_ref(
/*=====================*/
byte* dest, /* in: where to store */
ulint col_len, /* in: dest buffer size: determines into
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. */
......
......@@ -181,11 +181,11 @@ void
row_mysql_store_blob_ref(
/*=====================*/
byte* dest, /* in: where to store */
ulint col_len, /* in: dest buffer size: determines into
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
is SQL NULL this should be 0; remember
......@@ -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);
}
/***********************************************************************
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment