1
0
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:
Michael Meskes
2003-06-20 12:00:59 +00:00
parent 5fc9f3d574
commit abd310a3b1
7 changed files with 38 additions and 8 deletions

View File

@ -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;