londiste.local_add_table: avoid array_length(), its 8.4+
authorMarko Kreen <markokr@gmail.com>
Tue, 30 Nov 2010 13:00:02 +0000 (15:00 +0200)
committerMarko Kreen <markokr@gmail.com>
Tue, 30 Nov 2010 13:00:02 +0000 (15:00 +0200)
sql/londiste/functions/londiste.local_add_table.sql

index 2f15c06305042952f2ef273e0dba13a9e54b5271..692633c4b49f65c62e32c1ae21bddb2b5fad2bd3 100644 (file)
@@ -144,7 +144,7 @@ begin
         lg_pos := 'after';
 
         -- parse extra args
-        if array_length(i_trg_args, 1) > 0 then
+        if array_lower(i_trg_args, 1) is not null then
             for i in array_lower(i_trg_args, 1) .. array_upper(i_trg_args, 1) loop
                 arg := i_trg_args[i];
                 if arg like 'tgflags=%' then