1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-05 07:21:24 +03:00

Fixed connect statement with username in variable.

This commit is contained in:
Michael Meskes
2003-08-26 16:09:02 +00:00
parent cd0f42e87c
commit 47a4e2ed1c
3 changed files with 8 additions and 3 deletions

View File

@ -52,6 +52,7 @@ exec sql endif;
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];
@ -65,7 +66,7 @@ exec sql end declare section;
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));