agora inbox for postgres@postgres.berkeley.edu
help / color / mirror / Atom feedFrom: Bruce Taneja. <aataneja@cs.mtu.edu>
To: postgres@postgres.Berkeley.EDU
Subject: Re: " GetAttributeByName " ..
Date: Mon, 27 Jun 1994 15:10:05 -0400 (EDT)
Message-ID: <9406271910.AA19441@cs.mtu.edu> (raw)
In-Reply-To: <199406270618.XAA29544@faerie.CS.Berkeley.EDU>
>
> bool
> test(t, s)
> TUPLE t;
> char *s;
> {
> bool isnull = 0;
> CIRCLE *c = (CIRCLE *) GetAttributeByName(t, "a", &isnull);
>
> if (isnull)
> return(0);
>
> elog(NOTICE, "test: circle = (%f,%f,%f), string = %.16s",
> c->center.x, c->center.y, c->radius, s);
>
> return(1);
> }
Hi Paul,
Thanks for your help!
After playing around with your exmaple above, I think I found
what was wrong, but I can't really explain it:
The above example runs perfectly even on ver 4.1 ( :) ) , but
as soon as I changed the line :
> CIRCLE *c = (CIRCLE *) GetAttributeByName(t, "a", &isnull);
to the following:
> CIRCLE *c = (CIRCLE *) GetAttributeByName(t, "a");
i.e removed the "&isnull)" and etc. in the test() , the computer
hanged !
Now why does the GetAttributeByName() work OK w/o the 3rd param.
when running the overpaid(EMP) example in the 8.4.3 section (user manual)
and simply hangs when used w/o the 3rd param in the circle example .. !?
thanks for your help!
Bruce.
==============================================================================
To add/remove yourself to/from the POSTGRES mailing list: send mail with
the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU"
If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
a human will deal with it. DO NOT post to the "postgres" mailing list.
==============================================================================
reply
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: postgres@postgres.berkeley.edu
Cc: aataneja@cs.mtu.edu
Subject: Re: " GetAttributeByName " ..
In-Reply-To: <9406271910.AA19441@cs.mtu.edu>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox