Skip to content

Commit

Permalink
sqlops: updated to use xavp long value field
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Nov 22, 2022
1 parent 2dd4a59 commit c090b40
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/modules/sqlops/sql_api.c
Expand Up @@ -529,19 +529,19 @@ int sql_exec_xquery(struct sip_msg *msg, sql_con_t *con, str *query,
(char*)RES_ROWS(db_res)[i].values[j].val.blob_val.s;
break;
case DB1_INT:
val.type = SR_XTYPE_INT;
val.v.i
= (int)RES_ROWS(db_res)[i].values[j].val.int_val;
val.type = SR_XTYPE_LONG;
val.v.l
= (long)RES_ROWS(db_res)[i].values[j].val.int_val;
break;
case DB1_DATETIME:
val.type = SR_XTYPE_INT;
val.v.i
= (int)RES_ROWS(db_res)[i].values[j].val.time_val;
val.type = SR_XTYPE_LONG;
val.v.l
= (long)RES_ROWS(db_res)[i].values[j].val.time_val;
break;
case DB1_BITMAP:
val.type = SR_XTYPE_INT;
val.v.i
= (int)RES_ROWS(db_res)[i].values[j].val.bitmap_val;
val.type = SR_XTYPE_LONG;
val.v.l
= (long)RES_ROWS(db_res)[i].values[j].val.bitmap_val;
break;
case DB1_BIGINT:
val.type = SR_XTYPE_LLONG;
Expand Down

0 comments on commit c090b40

Please sign in to comment.