You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@age.apache.org by jo...@apache.org on 2022/12/25 11:04:47 UTC

[age] branch master updated: Changed age_split, age_replace, age_sin from STABLE TO IMMUTABLE (#402)

This is an automated email from the ASF dual-hosted git repository.

joshinnis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/age.git


The following commit(s) were added to refs/heads/master by this push:
     new 5aa551a  Changed age_split, age_replace, age_sin from STABLE TO IMMUTABLE (#402)
5aa551a is described below

commit 5aa551af6551d1fc591de4fd9a2fe84a6160da5c
Author: Muhammad Zahid <za...@gmail.com>
AuthorDate: Sun Dec 25 16:04:41 2022 +0500

    Changed age_split, age_replace, age_sin from STABLE TO IMMUTABLE (#402)
    
    Generally reasons for changing signature of these functions are:
    1.These functions do not need to perform database lookup.
    2.These functions neither perform database modification.
    3.These functions are guaranteed to return the same constant results given the same argument.
---
 age--1.1.0.sql | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/age--1.1.0.sql b/age--1.1.0.sql
index d76d479..1d00805 100644
--- a/age--1.1.0.sql
+++ b/age--1.1.0.sql
@@ -3620,14 +3620,14 @@ AS 'MODULE_PATHNAME';
 CREATE FUNCTION ag_catalog.age_split(variadic "any")
 RETURNS agtype
 LANGUAGE c
-STABLE
+IMMUTABLE
 PARALLEL SAFE
 AS 'MODULE_PATHNAME';
 
 CREATE FUNCTION ag_catalog.age_replace(variadic "any")
 RETURNS agtype
 LANGUAGE c
-STABLE
+IMMUTABLE
 PARALLEL SAFE
 AS 'MODULE_PATHNAME';
 
@@ -3637,7 +3637,7 @@ AS 'MODULE_PATHNAME';
 CREATE FUNCTION ag_catalog.age_sin(variadic "any")
 RETURNS agtype
 LANGUAGE c
-STABLE
+IMMUTABLE
 PARALLEL SAFE
 AS 'MODULE_PATHNAME';