summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/preproc
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2006-07-28 09:08:01 +0000
committerMichael Meskes <meskes@postgresql.org>2006-07-28 09:08:01 +0000
commit72ba3cb50f60151a0c6816a2cb3990de237442d4 (patch)
tree58d1abd29dfe91cf576d3729c449d19c9a142611 /src/interfaces/ecpg/preproc
parent67cdc613693acddb7d696e999072e0a1b9a7b949 (diff)
Added more SoC changes by Joachim Wieland <joe@mcknight.de>:
- SHOW statement puts result into a variable - COPY TO STDOUT works
Diffstat (limited to 'src/interfaces/ecpg/preproc')
-rw-r--r--src/interfaces/ecpg/preproc/preproc.y12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/interfaces/ecpg/preproc/preproc.y b/src/interfaces/ecpg/preproc/preproc.y
index a005e71f285..71712b1bb4a 100644
--- a/src/interfaces/ecpg/preproc/preproc.y
+++ b/src/interfaces/ecpg/preproc/preproc.y
@@ -1,4 +1,4 @@
-/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.325 2006/06/26 14:12:02 meskes Exp $ */
+/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.326 2006/07/28 09:08:01 meskes Exp $ */
/* Copyright comment */
%{
@@ -1194,16 +1194,16 @@ ColId_or_Sconst: ColId { $$ = $1; }
| StringConst { $$ = $1; }
;
-VariableShowStmt: SHOW var_name
+VariableShowStmt: SHOW var_name ecpg_into
{ $$ = cat2_str(make_str("show"), $2); }
- | SHOW TIME ZONE
+ | SHOW TIME ZONE ecpg_into
{ $$ = make_str("show time zone"); }
- | SHOW TRANSACTION ISOLATION LEVEL
+ | SHOW TRANSACTION ISOLATION LEVEL ecpg_into
{ $$ = make_str("show transaction isolation level"); }
- | SHOW SESSION AUTHORIZATION
+ | SHOW SESSION AUTHORIZATION ecpg_into
{ $$ = make_str("show session authorization"); }
| SHOW ALL
- { $$ = make_str("show all"); }
+ { mmerror(PARSE_ERROR, ET_ERROR, "SHOW ALL not implemented"); }
;
VariableResetStmt: RESET var_name