Return-Path: pg_adm@postgres.berkeley.edu
Received: by postgres.Berkeley.EDU (5.61/1.29)
	id AA17288; Wed, 10 Mar 93 05:49:10 -0800
Date: Wed, 10 Mar 93 05:49:10 -0800
Message-Id: <9303101349.AA17288@postgres.Berkeley.EDU>
From: browne@cs.utk.edu
Subject: string argument to user-defined function
To: postgres@postgres.berkeley.edu
Sender: pg_adm@postgres.berkeley.edu

Does anyone know how to send a string as an argument to a user-defined function?
(e.g., the following example on p. 17 of the Postgres User Manual

  * retrieve (emp.all)
        where overpaid2(emp,dept,"bill",8) \g

  bool
  overpaid2(emp, dept, name, number)
      TUPLE emp, dept;
      char *name;
      long number;

My question is how does one declare the third argument above in the define
function statement?  Using char16 gives a type mismatch error message when
the function is called.

Shirley Browne
Research Associate
University of Tennessee
Computer Science Department
107 Ayres Hall
Knoxville, TN  37996-1301
(615) 974-3547
browne@cs.utk.edu
