X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 9F260D1B53C for ; Tue, 21 Oct 2003 12:21:13 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 60074-03 for ; Tue, 21 Oct 2003 09:20:45 -0300 (ADT) Received: from mail.umc.br (mail.umc.br [200.246.78.5]) by svr1.postgresql.org (Postfix) with ESMTP id 4F0EDD1B4E3 for ; Tue, 21 Oct 2003 09:20:40 -0300 (ADT) Received: from la3inf041 (proxy4.umc.br [200.246.78.4]) by mail.umc.br (8.12.8/8.12.8) with SMTP id h9LCNB1U007784 for ; Tue, 21 Oct 2003 10:23:12 -0200 From: "geraldo" To: Subject: function problem Date: Tue, 21 Oct 2003 10:25:14 -0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/270 X-Sequence-Number: 15670 Can anybody tell me why the following code when activated by a select only affects the first line of the table??? create or replace function increase(integer) returns void as 'update tab set price=price*(1+$1/100.0)' language sql; Thanks.