DECLARE
docDate ALIAS FOR $1;
len INTEGER;
BEGIN
SELECT INTO len * FROM (SELECT ((date_part(''year'',age(docDate))*12)+(date_part(''month'',age(docDate)))) AS a;
RETURN len;
END
' LANGUAGE 'plpgsql';
NOTICE: line 5 at select into variables
ERROR: parser: parse error at or near ""
Tsoloane Moahloli
Verity South
Africa (Pty) Ltd
P +27 (11) 475 1718
C +27 (83)
400-2998
[EMAIL PROTECTED]
http://www.verity.com/
Over 80% of the FORTUNE 50 trust Verity to power their Business Portal
and e-Commerce sites.
Verity is the leader in the Gartner 2002 Enterprise
Search Magic Quadrant
Disclaimer
The information contained in this communication is
confidential and may be legally privileged. It is intended solely for the use of
the individual or entity to whom it is addressed and others authorized to
receive it. If you are not the intended recipient you are hereby notified that
any disclosure, copying, distribution or taking action in reliance of the
contents of this information is strictly prohibited and may be unlawful. Views
and opinions are those of the sender unless clearly stated as being that of Mimecast
(Pty) Ltd. Mimecast (Pty) Ltd is neither liable for the proper,
complete transmission of the information contained in this communication, nor
any delay in its receipt or that the mail is virus-free. Mimecast (Pty) Ltd is
not liable whatsoever for loss or damage resulting from the opening of this
message and/or attachments and/or the use of the information contained in this
message and/or attachments.