diff options
author | Marko Kreen | 2010-11-26 11:51:59 +0000 |
---|---|---|
committer | Marko Kreen | 2010-11-29 12:56:16 +0000 |
commit | bd7789d608976f3974baefdf025f7c8ef09e5583 (patch) | |
tree | 8efc0c80872601b26307f417c055f833b9ce2545 | |
parent | b418010cd9b24f32dab91a452a539d0e6d247516 (diff) |
londiste.local_add_table: skip empty arg array
-rw-r--r-- | sql/londiste/functions/londiste.local_add_table.sql | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/londiste/functions/londiste.local_add_table.sql b/sql/londiste/functions/londiste.local_add_table.sql index c6ad2982..46d88fe3 100644 --- a/sql/londiste/functions/londiste.local_add_table.sql +++ b/sql/londiste/functions/londiste.local_add_table.sql @@ -141,7 +141,7 @@ begin lg_pos := 'after'; -- parse extra args - if i_trg_args is not null then + if array_length(i_trg_args, 1) > 0 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 |