Skip to content

Commit

Permalink
Kompatibilitätsanpassungen für PostgreSQL 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jan 27, 2019
1 parent 04f8bc7 commit e0d392a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nas2alb-functions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ BEGIN
END;
$$ LANGUAGE plpgsql IMMUTABLE;

CREATE OR REPLACE FUNCTION alkis_truncate(s varchar, l integer) RETURNS varchar AS $$
CREATE OR REPLACE FUNCTION alkis_truncate(s0 varchar, l integer) RETURNS varchar AS $$
DECLARE
s VARCHAR := trim(s0);
BEGIN
s := trim(s);

IF length(s)>l THEN
IF l>3 THEN
RETURN substr(s, 1, l-3) || '...';
Expand Down

0 comments on commit e0d392a

Please sign in to comment.