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/27 17:16:23 UTC
[age] branch master updated: Changed age_id, age_start_id and age_end_id function signatures to IMMUTABLE (#405)
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 da73984 Changed age_id, age_start_id and age_end_id function signatures to IMMUTABLE (#405)
da73984 is described below
commit da7398474ae89cc7037261e18fe1431a65117fc6
Author: Marco Aurélio Silva de Souza Júnior <57...@users.noreply.github.com>
AuthorDate: Tue Dec 27 14:16:18 2022 -0300
Changed age_id, age_start_id and age_end_id function signatures to IMMUTABLE (#405)
* Changed some function signatures to IMMUTABLE
Changed age_id(agtype), age_start_id(agtype) and age_end_id(agtype) from STABLE to IMMUTABLE.
* Revert "Changed some function signatures to IMMUTABLE"
This reverts commit 92ac40d15f3eb90812323370bf1be23e7526e623.
* Changed age_id signature to IMMUTABLE
* Function signature was changed from STABLE to IMMUTABLE;
* Function receives a vertex or edge container (or null), and analyze its contents to return the "id" stored in said container;
* As it acts only on its arguments, it will always return the same result, given the same arguments, even across multiple SQL statements, being classified as IMMUTABLE function.
* Changed age_start_id signature to IMMUTABLE
* Function signature was changed from STABLE to IMMUTABLE;
* Function receives an edge container (or null), and analyze its contents to return the "start_id" stored in said container;
* As it acts only on its arguments, it will always return the same result, given the same arguments, even across multiple SQL statements, being classified as IMMUTABLE function.
* Changed age_end_id signature to IMMUTABLE
* Function signature was changed from STABLE to IMMUTABLE;
* Function receives an edge container (or null), and analyze its contents to return the "end_id" stored in said container;
* As it acts only on its arguments, it will always return the same result, given the same arguments, even across multiple SQL statements, being classified as IMMUTABLE function.
---
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 1f0d097..de074d8 100644
--- a/age--1.1.0.sql
+++ b/age--1.1.0.sql
@@ -3413,7 +3413,7 @@ AS 'MODULE_PATHNAME';
CREATE FUNCTION ag_catalog.age_id(agtype)
RETURNS agtype
LANGUAGE c
-STABLE
+IMMUTABLE
RETURNS NULL ON NULL INPUT
PARALLEL SAFE
AS 'MODULE_PATHNAME';
@@ -3421,7 +3421,7 @@ AS 'MODULE_PATHNAME';
CREATE FUNCTION ag_catalog.age_start_id(agtype)
RETURNS agtype
LANGUAGE c
-STABLE
+IMMUTABLE
RETURNS NULL ON NULL INPUT
PARALLEL SAFE
AS 'MODULE_PATHNAME';
@@ -3429,7 +3429,7 @@ AS 'MODULE_PATHNAME';
CREATE FUNCTION ag_catalog.age_end_id(agtype)
RETURNS agtype
LANGUAGE c
-STABLE
+IMMUTABLE
RETURNS NULL ON NULL INPUT
PARALLEL SAFE
AS 'MODULE_PATHNAME';