2
0
Эх сурвалжийг харах

modules_k/sqlops: Add BIGINT support for sql_xquery()

xavp's have native support for longlongs so there's no reason not to use it.
Alex Hermann 14 жил өмнө
parent
commit
956f01b2a9

+ 5 - 0
modules_k/sqlops/sql_api.c

@@ -438,6 +438,11 @@ int sql_do_xquery(struct sip_msg *msg, sql_con_t *con, pv_elem_t *query,
 						val.v.i
 							= (int)RES_ROWS(db_res)[i].values[j].val.bitmap_val;
 					break;
+					case DB1_BIGINT:
+						val.type = SR_XTYPE_LLONG;
+						val.v.ll
+							= RES_ROWS(db_res)[i].values[j].val.ll_val;
+					break;
 					default:
 						val.type = SR_XTYPE_NULL;
 				}