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

"data" from byte* to const void*.
This commit is contained in:
marko 2007-09-27 10:59:54 +00:00
parent fc608351ab
commit 48d761aeb8
2 changed files with 15 additions and 10 deletions

View file

@ -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. */

View file

@ -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);
}
/***********************************************************************