mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-01-12 13:50:12 +01:00
fixed a typo
This commit is contained in:
parent
4853694fcd
commit
a1385cf948
@ -58,7 +58,7 @@
|
|||||||
#define MAX_SQL_VARS 20
|
#define MAX_SQL_VARS 20
|
||||||
|
|
||||||
#define TYPE_UNDEF 0
|
#define TYPE_UNDEF 0
|
||||||
#define TYPE_TINY 1
|
#define TYPE_SHORT 1
|
||||||
#define TYPE_LONG 2
|
#define TYPE_LONG 2
|
||||||
#define TYPE_LONGLONG 3
|
#define TYPE_LONGLONG 3
|
||||||
#define TYPE_STRING 4
|
#define TYPE_STRING 4
|
||||||
|
@ -64,8 +64,8 @@ int p_exec_query(struct session_data *sdata, MYSQL_STMT *stmt, struct __data *da
|
|||||||
|
|
||||||
|
|
||||||
switch(data->type[i]) {
|
switch(data->type[i]) {
|
||||||
case TYPE_TINY:
|
case TYPE_SHORT:
|
||||||
bind[i].buffer_type = MYSQL_TYPE_TINY;
|
bind[i].buffer_type = MYSQL_TYPE_SHORT;
|
||||||
bind[i].length = 0;
|
bind[i].length = 0;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -134,7 +134,7 @@ int p_store_results(struct session_data *sdata, MYSQL_STMT *stmt, struct __data
|
|||||||
if(data->type[i] > TYPE_UNDEF){
|
if(data->type[i] > TYPE_UNDEF){
|
||||||
|
|
||||||
switch(data->type[i]) {
|
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;
|
break;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user