Fix FOUND in _CDB_Geometry_SRID #141
This commit is contained in:
parent
e546c15770
commit
9ec24c1aff
@ -519,16 +519,16 @@ DECLARE
|
|||||||
BEGIN
|
BEGIN
|
||||||
|
|
||||||
RAISE DEBUG 'CDB(%): %', '_CDB_Geometry_SRID', 'entered function';
|
RAISE DEBUG 'CDB(%): %', '_CDB_Geometry_SRID', 'entered function';
|
||||||
|
|
||||||
EXECUTE Format('SELECT ST_SRID(%I) AS srid FROM %s LIMIT 1', columnname, reloid::text)
|
EXECUTE Format('SELECT ST_SRID(%I) AS srid FROM %s LIMIT 1', columnname, reloid::text)
|
||||||
INTO rec;
|
INTO rec;
|
||||||
|
|
||||||
IF FOUND THEN
|
IF rec IS NOT NULL THEN
|
||||||
RETURN rec.srid;
|
RETURN rec.srid;
|
||||||
END IF;
|
END IF;
|
||||||
|
|
||||||
RETURN 0;
|
RETURN 0;
|
||||||
|
|
||||||
END;
|
END;
|
||||||
$$ LANGUAGE 'plpgsql';
|
$$ LANGUAGE 'plpgsql';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user