Explorar el Código

modules_k/sqlops: small bug fix to sqlops_get_value

pd hace 14 años
padre
commit
b1a8bfd69c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      modules_k/sqlops/sql_api.c

+ 1 - 1
modules_k/sqlops/sql_api.c

@@ -710,7 +710,7 @@ int sqlops_get_value(str *sres, int i, int j, sql_val_t **val)
 		LM_ERR("row index out of bounds [%d/%d]\n", i, res->nrows);
 		goto error;
 	}
-	if(i>=res->ncols)
+	if(j>=res->ncols)
 	{
 		LM_ERR("column index out of bounds [%d/%d]\n", j, res->ncols);
 		goto error;