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 MAA00566 for postgres-redist; Mon, 27 Jun 1994 12:48:34 -0700 Resent-From: POSTGRES mailing list Resent-Message-Id: <199406271948.MAA00566@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 MAA00552; Mon, 27 Jun 1994 12:48:32 -0700 Received: from werner.mtu.edu (werner.cs.mtu.edu) by cs.mtu.edu (4.1/SMI-4.1) id AA19597; Mon, 27 Jun 94 15:48:32 EDT From: aataneja@cs.mtu.edu (Bruce Taneja.) Message-Id: <9406271948.AA19597@cs.mtu.edu> Subject: Re: " GetAttributeByName " .. To: hartzell@postgres.Berkeley.EDU Date: Mon, 27 Jun 1994 15:48:30 -0400 (EDT) Cc: postgres@postgres.Berkeley.EDU In-Reply-To: <199406271946.MAA13330@toe.CS.Berkeley.EDU> from "George Hartzell" at Jun 27, 94 12:46:43 pm X-Mailer: ELM [version 2.4 PL22] Content-Type: text Content-Length: 969 Resent-To: postgres-redist@postgres.Berkeley.EDU Resent-Date: Mon, 27 Jun 94 12:48:34 -0700 Resent-XMts: smtp > > Bruce Taneja. writes: > > > > 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 .. !? > > In general, if a function takes 3 arguments, and you pass it two, then > you really should expect trouble since it's going to go ahead and use > some randome system trash as it's third arg. I'm not in a position to > go digging around in the source code to find out just what that > function does with that arg., but it's not surprising that giving it > something meaningless makes it blow up sometimes. I think your explanation is quite clear and obvious and in fact goes without saying .. BUT .. WHY does the user manual do the example in sect.8.4.3. w/o the 3rd param .. ?????? Was that a mistake ?? and what beats me is why did this example work while it failed for the circle.c ?? 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. ==============================================================================