Mon Aug 25 13:24:27 CEST 2003
- Synced parser.
+
+Tue Aug 26 18:06:45 CEST 2003
+
+ - Fixed processing of connect statement with username as variable.
- Set ecpg version to 3.0.0
- Set ecpg library to 4.0.0
- Set pgtypes library to 1.0.0
-/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Attic/preproc.y,v 1.252 2003/08/25 13:44:00 meskes Exp $ */
+/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Attic/preproc.y,v 1.253 2003/08/26 16:09:01 meskes Exp $ */
/* Copyright comment */
%{
{
if ($1[0] == '\"')
$$ = $1;
- else if (strcmp($1, "?") == 0) /* variable */
+ else if (strcmp($1, " ?") == 0) /* variable */
{
enum ECPGttype type = argsinsert->variable->type->type;
char command[128];
char *connection="pm";
int how_many;
+ char *user="postgres";
exec sql end declare section;
exec sql var name is string[AMOUNT];
char msg[128];
exec sql connect to mm as main;
strcpy(msg, "connect");
- exec sql connect to pm;
+ exec sql connect to pm user :user;
strcpy(msg, "create");
exec sql at main create table "Test" (name char(NAMELEN), amount int, letter char(1));