Re: [SQL] Issue with a variable in a function

2011-11-09 Thread tlund79
I solved this one by trial and error. You were right I needed brackets to indicate an array, but also needed to replace "in ($4)" with "= any ($4)" -- View this message in context: http://postgresql.1045698.n5.nabble.com/Issue-with-a-variable-in-a-function-tp4974235p4977361.html Sent from the Pos

Re: [SQL] Issue with a variable in a function

2011-11-09 Thread tlund79
18:28 To: Lund, Thomas Subject: Re: Issue with a variable in a function -Original Message- From: [hidden email] [mailto:[hidden email]] On Behalf Of tlund79 Sent: Tuesday, November 08, 2011 8:17 AM To: [hidden email] Subject: [SQL] Issue with a variable in a function The issue relates

Re: [SQL] Issue with a variable in a function

2011-11-08 Thread David Johnston
-Original Message- From: pgsql-sql-ow...@postgresql.org [mailto:pgsql-sql-ow...@postgresql.org] On Behalf Of tlund79 Sent: Tuesday, November 08, 2011 8:17 AM To: pgsql-sql@postgresql.org Subject: [SQL] Issue with a variable in a function The issue relates to the variable "prosjek

[SQL] Issue with a variable in a function

2011-11-08 Thread tlund79
I've created a function which purpose is to import data to an excel report. This is however the first time I'm doing this, and I've exhausted all other options before asking the question here. I call this function with this command: select ppr_data(2011,1,52,8) The issue relates to the variable "