Re: help with function .. .. date data type

From: John DeSoi <desoi(at)pgedit(dot)com>
To: "ed" <ntworldnet(at)netzero(dot)net>
Cc: <pgsql-novice(at)postgresql(dot)org>
Subject: Re: help with function .. .. date data type
Date: 2005-06-20 01:28:44
Message-ID: d8b5708a501568678531711a74983e87@pgedit.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice


On Jun 19, 2005, at 11:39 PM, ed wrote:

> set datestyle to ""US, SQL"";

You have two double quotes here where you need to have single quotes:

set datestyle to ''US, SQL'';

After you fix this, I think you'll run into a few more problems. You
have your function as returning a date, but it looks like you are
trying to return a set of rows. Here is some documentation with
examples:

http://techdocs.postgresql.org/guides/SetReturningFunctions

Documentation note: I can't find this information in the current
documentation. The index entry for "Set Returning Functions" gives this
link:

http://www.postgresql.org/docs/8.0/interactive/functions-srf.html

which seems far less helpful. Have I missed it?

John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Michael Fuhr 2005-06-20 03:15:21 Re: Raise Notice
Previous Message Tom Lane 2005-06-20 01:11:27 Re: help with function .. .. date data type