minor change in new-grid-update

parent 4ef9b767
......@@ -38,6 +38,18 @@ BEGIN
SELECT _attributes->>"$.free_category_coord_x" INTO _free_category_coord_x;
SELECT _attributes->>"$.free_category_coord_y" INTO _free_category_coord_y;
IF _attributes->>"$.free_category_coord_x" = 'null' THEN
SET _free_category_coord_x = NULL;
ELSE
SELECT _attributes->>"$.free_category_coord_x" INTO _free_category_coord_x;
END IF;
IF _attributes->>"$._free_category_coord_y" = 'null' THEN
SET _free_category_coord_y = NULL;
ELSE
SELECT _attributes->>"$._free_category_coord_y" INTO _free_category_coord_y;
END IF;
-- Esto hay que hacerlo porque el null procediente del JSON para id_cat lo reconoce como un literal
IF _attributes->>"$.id_cat" = 'null' THEN
SET _id_cat = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment