From: Tom Lane <tgl@sss.pgh.pa.us>
To: Karthikeyan Sundaram <skarthi98@hotmail.com>
Cc: postgres admin <pgsql-admin@postgresql.org>
Cc: postgres sql <pgsql-sql@postgresql.org>
Subject: Re: Question on pgpsql function
Date: Sun, 08 Apr 2007 19:20:46 -0400
Message-ID: <11751.1176074446@sss.pgh.pa.us> (raw)
In-Reply-To: <BAY131-W13C024D09AE528E6496EECB05A0@phx.gbl>
References: <BAY131-W13C024D09AE528E6496EECB05A0@phx.gbl>
Karthikeyan Sundaram <skarthi98@hotmail.com> writes:
> I am getting an error message
> ERROR: function substr(bit, integer, integer) does not existHINT: No func=
> tion matches the given name and argument types. You may need to add explici=
> t type casts.CONTEXT: SQL function "week_func"
I think you want substring() not substr().
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, skarthi98@hotmail.com, pgsql-admin@postgresql.org
Subject: Re: Question on pgpsql function
In-Reply-To: <11751.1176074446@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox