From: | Sky <sky(at)sylvio(dot)hu> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | FUNCTION problem |
Date: | 2004-04-02 07:07:35 |
Message-ID: | 406D1137.8090303@sylvio.hu |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
HI everybody !
I have a problem, but I don't know the solution:
CREATE TABLE person(
user_id SERIAL NOT NULL,
uid CHARACTER(20) NOT NULL,
pwd CHARACTER(20) NOT NULL,
PRIMARY KEY (user_id)
);
OK, That's right...
CREATE FUNCTION getuserid (CHARACTER(20),CHARACTER(20))
RETURNS SETOF INTEGER
AS
'
SELECT user_id FROM person WHERE uid=$1 AND pwd=$2;
'
LANGUAGE 'sql';
:-(
ERROR: Unable to identify an operator '=$' for types 'character' and
'integer
You will have to retype this query using an explicit cast.
Please help me. I'm gona Crazy ...
I would like to write that function
with plain Sql / LANGUAGE 'sql' /.
CIAO
--
Sky
sky AT sylvio .hu
Debian Group - Association of Hungarian Linux Users
Accessibility Project leader
gpg --keyserver hkp://pgp.mit.edu --recv-keys 314D1B0C
fingerprint = B211 E8C7 C6C2 18B2 9F30 ADF6 EDD9 A7FA 314D 1B0C
From | Date | Subject | |
---|---|---|---|
Next Message | Durai | 2004-04-02 07:07:53 | PostgreSQL 7.4.2 warnings in HPUX IPF: LOG: could not resolve "localhost": host nor service provided |
Previous Message | joseph speigle | 2004-04-02 06:10:26 | Re: Problems compiling Apache 2.0.49 with mod_auth_pgsql |