Define command

From: "Dr(dot) Michael Meskes" <meskes(at)online-club(dot)de>
To: PostgreSQL Hacker <pgsql-hackers(at)postgresql(dot)org>
Subject: Define command
Date: 1998-08-14 11:17:38
Message-ID: 19980814131738.A2451@online-club.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I found some time today and added the exec sql define command to ecpg.
However, since I do not have the specs with me I am not completely sure the
syntax and semantics is correct.

I believe the syntax wax: exec sql define AMOUNT is 5;

As for the semantics I think this should mean to replace AMOUNT by the value
5 (of course) in the complete file. That is also replace inside the C part.
I'm not sure about that, but otherwise it would be impossible to parse the
variable declarations.

Also it cannot do variable expansions, just simple string for string
replacements. Since ORACLE doesn't seem to support it at all, could anyone
wit a system that does support this feature check whether this works:

exec sql define S(X) is X=X+1;

I believe Informix does support defines.

Michael
--
Dr. Michael Meskes meskes(at)online-club(dot)de, meskes(at)debian(dot)org
Go SF49ers! Go Rhein Fire! Use Debian GNU/Linux!

Browse pgsql-hackers by date

  From Date Subject
Next Message Lendvary Gyorgy 1998-08-14 14:01:12 Transactions
Previous Message Jan Wieck 1998-08-14 10:01:53 Re: non instead rule system