We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c940ae commit c8b1053Copy full SHA for c8b1053
src/test/db/02-storage-schema.sql
@@ -71,7 +71,7 @@ BEGIN
71
select string_to_array(name, '/') into _parts;
72
select _parts[array_length(_parts,1)] into _filename;
73
-- @todo return the last part instead of 2
74
- return split_part(_filename, '.', 2);
+ return reverse(split_part(reverse(_filename), '.', 1));
75
END
76
$function$;
77
0 commit comments