Skip to content

Commit 357ec11

Browse files
authored
Merge pull request #203 from jbo-ads/fix-dimension-pg
Fix issue with PostgreSQL 2nd level dimensions
2 parents 98a4f43 + a785e62 commit 357ec11

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/dimension_pg.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ static void _mapcache_dimension_postgresql_bind_parameters(mapcache_context *ctx
104104

105105
paramidx = VOIDP2INT(apr_hash_get(param_indexes,":dim",APR_HASH_KEY_STRING));
106106
if (paramidx) {
107+
paramidx-=1;
107108
(*paramValues)[paramidx] = dim_value;
108109
(*paramLengths)[paramidx] = strlen(dim_value);
109110
(*paramFormats)[paramidx] = 0;

0 commit comments

Comments
 (0)