Return-Path: owner-postman
Received: from localhost (localhost [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with SMTP id OAA20936 for postgres-redist; Sun, 26 Jun 1994 14:51:01 -0700
Resent-From: POSTGRES mailing list <postman@postgres.Berkeley.EDU>
Resent-Message-Id: <199406262151.OAA20936@nobozo.CS.Berkeley.EDU>
X-Authentication-Warning: nobozo.CS.Berkeley.EDU: Host localhost didn't use HELO protocol
Sender: owner-postman@postgres.Berkeley.EDU
X-Return-Path: owner-postman
Received: from cs.mtu.edu (cs.mtu.edu [141.219.150.12]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with SMTP id OAA20926 for <postgres@nobozo.CS.Berkeley.EDU>; Sun, 26 Jun 1994 14:50:59 -0700
Received: from werner.mtu.edu (werner.cs.mtu.edu) by cs.mtu.edu (4.1/SMI-4.1)
	id AA16321; Sun, 26 Jun 94 17:50:58 EDT
From: aataneja@cs.mtu.edu (Bruce Taneja.)
Message-Id: <9406262150.AA16321@cs.mtu.edu>
Subject: " GetAttributeByName " .. 
To: postgres@postgres.Berkeley.EDU
Date: Sun, 26 Jun 1994 17:50:57 -0400 (EDT)
X-Mailer: ELM [version 2.4 PL22]
Content-Type: text
Content-Length: 1048      
Resent-To: postgres-redist@postgres.Berkeley.EDU
Resent-Date: Sun, 26 Jun 94 14:51:01 -0700
Resent-XMts: smtp


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.
==============================================================================
