Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id BB080152A2F9 for ; Fri, 27 Jul 2012 18:45:02 -0300 (ADT) Received: from news.hub.org ([200.46.204.72]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SusLF-0001cs-35 for pgsql-jdbc@postgresql.org; Fri, 27 Jul 2012 21:45:02 +0000 Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.5/8.14.5) with ESMTP id q6RLimPb017658 for ; Fri, 27 Jul 2012 18:44:48 -0300 (ADT) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.5/8.14.5/Submit) id q6RLLQKK003101 for pgsql-jdbc@postgresql.org; Fri, 27 Jul 2012 18:21:26 -0300 (ADT) (envelope-from news) From: Brady Mathis X-Newsgroups: pgsql.interfaces.jdbc Subject: Re: Opening view that uses a function - empty column Date: Fri, 27 Jul 2012 14:21:24 -0700 (PDT) Organization: http://groups.google.com Lines: 19 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Complaints-To: groups-abuse@google.com In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=205.168.223.3; posting-account=0Pn6hwoAAAAFMfiMGGYB3MQVLeGq7kK1 User-Agent: G2/1.0 X-Received-Bytes: 1833 To: pgsql-jdbc@postgresql.org X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201207/44 X-Sequence-Number: 23142 I am actually using Jasper reports to access the view. I created the data source and specified the following: Driver: org.postgresql.Driver URL: jdbc:postgresql://localhost:5432/postgres UID and PW I made sure to update to postgresql-9.1-902.jdbc4.jar (PG version is 9.1.2) Then I defined a query simply as: select * from encounter; I also tried the same query using a SquirrelSQL client (just to eliminate a problem in Jasper) and got the same result. The column filled by the function is empty. If I select * from encounter directly in postgres, the column is filled. My apologies if I haven't included the implementation details that you need. Thanks!