From d5740d7e26ab59da1c4a037510defbb1334eaaf4 Mon Sep 17 00:00:00 2001 From: Michael Meskes Date: Wed, 19 Feb 2003 12:36:39 +0000 Subject: [PATCH] Added DATABASE command as alias to CONNECT TO. --- src/interfaces/ecpg/ChangeLog | 6 ++++++ src/interfaces/ecpg/preproc/preproc.y | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/interfaces/ecpg/ChangeLog b/src/interfaces/ecpg/ChangeLog index 72eacfa98d..f711b3fc7b 100644 --- a/src/interfaces/ecpg/ChangeLog +++ b/src/interfaces/ecpg/ChangeLog @@ -1338,6 +1338,12 @@ Fri Feb 14 14:14:25 CET 2003 - Synced parser and keyword file. - More work on Informix compatibility. + + +Wed Feb 19 13:39:29 CET 2003 + + - Added DATABASE command as alias to CONNECT TO. + - Fixed struct parsing bug. - Set ecpg version to 2.12.0. - Set library to 3.4.2. diff --git a/src/interfaces/ecpg/preproc/preproc.y b/src/interfaces/ecpg/preproc/preproc.y index 86dc68b5b8..0035321769 100644 --- a/src/interfaces/ecpg/preproc/preproc.y +++ b/src/interfaces/ecpg/preproc/preproc.y @@ -1,4 +1,4 @@ -/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Attic/preproc.y,v 1.209 2003/02/17 14:06:40 meskes Exp $ */ +/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Attic/preproc.y,v 1.210 2003/02/19 12:36:39 meskes Exp $ */ /* Copyright comment */ %{ @@ -4442,6 +4442,7 @@ enum_definition: '{' c_list '}' struct_type: s_struct '{' variable_declarations '}' { ECPGfree_struct_member(struct_member_list[struct_level]); + struct_member_list[struct_level] = NULL; free(actual_storage[struct_level--]); $$ = cat_str(4, $1, make_str("{"), $3, make_str("}")); } @@ -4450,6 +4451,7 @@ struct_type: s_struct '{' variable_declarations '}' union_type: s_union '{' variable_declarations '}' { ECPGfree_struct_member(struct_member_list[struct_level]); + struct_member_list[struct_level] = NULL; free(actual_storage[struct_level--]); $$ = cat_str(4, $1, make_str("{"), $3, make_str("}")); }