mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
- Fixed bug in a connect statement using varchars.
- Synced parser.
This commit is contained in:
@ -23,4 +23,4 @@ test_init: test_init.c
|
||||
$(ECPG) $?
|
||||
|
||||
clean:
|
||||
rm -f test1 test2 test3 test4 perftest *.c log dyntest dyntest2 test_notice test_code100
|
||||
rm -f test1 test2 test3 test4 perftest *.c log dyntest dyntest2 test_notice test_code100 test_init
|
||||
|
@ -15,6 +15,7 @@ EXEC SQL BEGIN DECLARE SECTION;
|
||||
char *t = "uvwxyz1234";
|
||||
double f;
|
||||
bool b = true;
|
||||
varchar database[3];
|
||||
EXEC SQL END DECLARE SECTION;
|
||||
FILE *dbgs;
|
||||
|
||||
@ -23,7 +24,8 @@ EXEC SQL END DECLARE SECTION;
|
||||
if ((dbgs = fopen("log", "w")) != NULL)
|
||||
ECPGdebug(1, dbgs);
|
||||
|
||||
EXEC SQL CONNECT TO mm;
|
||||
strcpy(database.arr, "mm");
|
||||
EXEC SQL CONNECT TO :database;
|
||||
|
||||
EXEC SQL SET AUTOCOMMIT = ON;
|
||||
|
||||
|
Reference in New Issue
Block a user