From: | jose soares <jose(at)sferacarta(dot)com> |
---|---|
To: | Moray McConnachie <moray(dot)mcconnachie(at)computing-services(dot)oxford(dot)ac(dot)uk> |
Cc: | postgresql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: [GENERAL] ODBC-client->Linux-server: datatype boolean not recognized? |
Date: | 1999-10-01 15:14:33 |
Message-ID: | 37F4CFD9.422D4975@sferacarta.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-general pgsql-interfaces |
oh! this was for old releases, now I'm using the following:
create function MsBool(bool,int4) returns bool as '
declare
bool_int int4;
begin
if $1 is NULL then
return NULL;
end if;
if $1 is TRUE then
if $2 <> 0 then
return TRUE;
end if;
else
if $2 = 0 then
return TRUE;
end if;
end if;
return FALSE;
end;
' language 'plpgsql';
create operator = (
leftarg=bool,
rightarg=int4,
procedure=MsBool,
commutator='=',
negator='!=',
restrict=eqsel,
join=eqjoinsel
);
Moray McConnachie ha scritto:
> >create function MsAccessBool(bool,int4) returns bool
> > as '' language 'internal';
>
> There is surely something missing here, between the empty single
> quotes? When I execute that, I get "There is no internal function
> msaccessbool"
From | Date | Subject | |
---|---|---|---|
Next Message | lad101880 lad101880 ghzh | 1999-10-02 07:56:21 | WANNA ENTER UR SOCIETY |
Previous Message | Andrew V. Gromozdin | 1999-10-01 13:59:34 | Month interval bug |
From | Date | Subject | |
---|---|---|---|
Next Message | leshan | 1999-10-01 15:30:45 | query string too long |
Previous Message | amy cheng | 1999-10-01 12:57:16 | alpha and true64 port |
From | Date | Subject | |
---|---|---|---|
Next Message | Jens Glaser | 1999-10-01 15:35:09 | Re: [INTERFACES] Program accessing database via servlet |
Previous Message | SAKAIDA Masaaki | 1999-10-01 14:08:10 | Re: [HACKERS] pgbash-1.1.1 release |