From 0cfc87bd32822e5ba22d8c2b1a26fa60f63ad7fa Mon Sep 17 00:00:00 2001 From: rudb <office@database.ru> Date: Fri, 19 Jun 2026 15:11:53 +0000 Subject: [PATCH] СУБД RuDB - релиз 2 --- contrib/postgis/raster/rt_pg/rtpg_create.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/contrib/postgis/raster/rt_pg/rtpg_create.c b/contrib/postgis/raster/rt_pg/rtpg_create.c index 533c9f5..e326d10 100644 --- a/contrib/postgis/raster/rt_pg/rtpg_create.c +++ b/contrib/postgis/raster/rt_pg/rtpg_create.c @@ -1213,13 +1213,15 @@ funcctx->user_fctx = arg1; /* total number of tuples to be returned */ - funcctx->max_calls = ((uint64_t) arg1->tile.nx * (uint64_t) arg1->tile.ny); + funcctx->max_calls = ((uint64_t) arg1->tile.nx * (uint64_t) arg1->tile.ny); /*#<<<DIA_SVACE_MAJOR>>>*/ MemoryContextSwitchTo(oldcontext); } +/*#<<<DIA_SVACE_MAJOR*/ if (funcctx->max_calls > INT32_MAX) elog(ERROR, "RASTER_tile: Overflow while working with raster points."); +/*#DIA_SVACE_MAJOR>>>*/ /* stuff done on every call of the function */ funcctx = SRF_PERCALL_SETUP(); -- Gitblit v1.10.0