Subject: string argument to user-defined function

From: [email-masked]
Date: Wed, 10 Mar 93 05:49:10 -0800

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
[email-masked]