소스 검색

modules_k/sqlops: small bug fix to sqlops_get_value

pd 14 년 전
부모
커밋
b1a8bfd69c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;