mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Allow constants in using clauses.
This commit is contained in:
@ -27,7 +27,6 @@ exec sql begin declare section;
|
||||
struct birthinfo ind_birth;
|
||||
} ind_personal, *i;
|
||||
ind ind_children;
|
||||
c testname="Petra";
|
||||
char *query="select name, born, age, married, children from meskes where name = :var1";
|
||||
exec sql end declare section;
|
||||
|
||||
@ -92,7 +91,7 @@ exec sql end declare section;
|
||||
exec sql declare prep cursor for MM;
|
||||
|
||||
strcpy(msg, "open");
|
||||
exec sql open prep using :testname;
|
||||
exec sql open prep using 'Petra';
|
||||
|
||||
exec sql whenever not found do break;
|
||||
|
||||
|
Reference in New Issue
Block a user