agora inbox for postgres@postgres.berkeley.edu  
help / color / mirror / Atom feed
From: Bruce Taneja. <aataneja@cs.mtu.edu>
To: postgres@postgres.Berkeley.EDU
Subject: " GetAttributeByName " ..
Date: Sun, 26 Jun 1994 17:50:57 -0400 (EDT)
Message-ID: <9406262150.AA16321@cs.mtu.edu> (raw)


Howdy again ,
 
with respect to my last query , and the function below, which
I had in my circle.c , ..

--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
bool  test(t, char1)
 TUPLE t;
 char *char1;
{
        extern char * GetAttributeByName();
        CIRCLE * bca;

/*        bca = (CIRCLE *) GetAttributeByName(t, "a");  */

  return strncmp(char1, "1");
}
-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


                 define function test
  (language = "c", returntype = bool)
  arg is (tutorial, char16)
  as "/usr/local/postgres/circle.o" \g

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

....... Upon running the query           

retrieve (tutorial.all)
               where test(tutorial, "1"::char16) \g

, I get the expected results OK, BUT when I uncomment the above
line in the code i.e " bca = (CIRCLE *) GetAttributeByName(t, "a"); "
and run the same query, the computer hangs ... !

.. has any body else had any good luck with GetAttributeByName(), 
can any body see why the monitor program hangs for me .. ?

All comments appreciated !
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: <9406262150.AA16321@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