fixed a typo

This commit is contained in:
SJ 2013-05-15 11:52:41 +02:00
parent 4853694fcd
commit a1385cf948
2 changed files with 4 additions and 4 deletions

View File

@ -58,7 +58,7 @@
#define MAX_SQL_VARS 20
#define TYPE_UNDEF 0
#define TYPE_TINY 1
#define TYPE_SHORT 1
#define TYPE_LONG 2
#define TYPE_LONGLONG 3
#define TYPE_STRING 4

View File

@ -64,8 +64,8 @@ int p_exec_query(struct session_data *sdata, MYSQL_STMT *stmt, struct __data *da
switch(data->type[i]) {
case TYPE_TINY:
bind[i].buffer_type = MYSQL_TYPE_TINY;
case TYPE_SHORT:
bind[i].buffer_type = MYSQL_TYPE_SHORT;
bind[i].length = 0;
break;
@ -134,7 +134,7 @@ int p_store_results(struct session_data *sdata, MYSQL_STMT *stmt, struct __data
if(data->type[i] > TYPE_UNDEF){
switch(data->type[i]) {
case TYPE_TINY: bind[i].buffer_type = MYSQL_TYPE_TINY;
case TYPE_SHORT: bind[i].buffer_type = MYSQL_TYPE_SHORT;
break;