Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions age--1.8.0--y.y.y.sql
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,21 @@ CREATE FUNCTION ag_catalog.load_labels_from_file(graph_name name,
DROP FUNCTION IF EXISTS ag_catalog.load_edges_from_file(name, name, text, bool);

CREATE FUNCTION ag_catalog.load_edges_from_file(graph_name name,
label_name name,
file_path text,
load_as_agtype bool default false,
delimiter text default ',')
label_name name,
file_path text,
load_as_agtype bool default false,
delimiter text default ',')
RETURNS void
LANGUAGE c
AS 'MODULE_PATHNAME';

--
-- Mark agtype_string_match_starts_with/_ends_with IMMUTABLE
--
-- Issue #2576: same inputs always produce the same output with no catalog
-- lookups or session state, matching agtype_string_match_contains which is
-- already IMMUTABLE.

ALTER FUNCTION ag_catalog.agtype_string_match_starts_with(agtype, agtype) IMMUTABLE;

ALTER FUNCTION ag_catalog.agtype_string_match_ends_with(agtype, agtype) IMMUTABLE;
4 changes: 2 additions & 2 deletions sql/agtype_string.sql
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
CREATE FUNCTION ag_catalog.agtype_string_match_starts_with(agtype, agtype)
RETURNS agtype
LANGUAGE c
STABLE
IMMUTABLE
RETURNS NULL ON NULL INPUT
PARALLEL SAFE
AS 'MODULE_PATHNAME';

CREATE FUNCTION ag_catalog.agtype_string_match_ends_with(agtype, agtype)
RETURNS agtype
LANGUAGE c
STABLE
IMMUTABLE
RETURNS NULL ON NULL INPUT
PARALLEL SAFE
AS 'MODULE_PATHNAME';
Expand Down