Created
April 28, 2012 17:58
-
-
Save moritz/2520846 to your computer and use it in GitHub Desktop.
MYSQL_BIND -- we need to model at least part of that to suport bind params
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef struct st_mysql_bind | |
{ | |
unsigned long *length; /* output length pointer */ | |
my_bool *is_null; /* Pointer to null indicator */ | |
void *buffer; /* buffer to get/put data */ | |
/* set this if you want to track data truncations happened during fetch */ | |
my_bool *error; | |
unsigned char *row_ptr; /* for the current data position */ | |
void (*store_param_func)(NET *net, struct st_mysql_bind *param); | |
void (*fetch_result)(struct st_mysql_bind *, MYSQL_FIELD *, | |
unsigned char **row); | |
void (*skip_result)(struct st_mysql_bind *, MYSQL_FIELD *, | |
unsigned char **row); | |
/* output buffer length, must be set when fetching str/binary */ | |
unsigned long buffer_length; | |
unsigned long offset; /* offset position for char/binary fetch */ | |
unsigned long length_value; /* Used if length is 0 */ | |
unsigned int param_number; /* For null count and error messages */ | |
unsigned int pack_length; /* Internal length for packed data */ | |
enum enum_field_types buffer_type; /* buffer type */ | |
my_bool error_value; /* used if error is 0 */ | |
my_bool is_unsigned; /* set if integer type is unsigned */ | |
my_bool long_data_used; /* If used with mysql_send_long_data */ | |
my_bool is_null_value; /* Used if is_null is 0 */ | |
void *extension; | |
} MYSQL_BIND; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment