summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/test
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2000-10-12 18:25:36 +0000
committerMichael Meskes <meskes@postgresql.org>2000-10-12 18:25:36 +0000
commit965a0a40e1869868df2ef2cc16f5fd80b9c55557 (patch)
tree07ffae86fdb740492f0e400a7be1048ab6db39a8 /src/interfaces/ecpg/test
parent5bcc226d9d02fca150373c1b23102228f10cdacf (diff)
downloadpostgresql-965a0a40e1869868df2ef2cc16f5fd80b9c55557.tar.gz
Replace constants by C variables wherever possible.
Diffstat (limited to 'src/interfaces/ecpg/test')
-rw-r--r--src/interfaces/ecpg/test/test3.pgc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/test/test3.pgc b/src/interfaces/ecpg/test/test3.pgc
index 44815067ba..75bdad5700 100644
--- a/src/interfaces/ecpg/test/test3.pgc
+++ b/src/interfaces/ecpg/test/test3.pgc
@@ -18,7 +18,7 @@ exec sql begin declare section;
birthinfo ind_birth;
} ind_personal;
int *ind_married = NULL;
- int children;
+ int children, movevalue = 2;
int ind_children;
str *married = NULL;
char *wifesname="Petra";
@@ -53,8 +53,11 @@ exec sql end declare section;
strcpy(msg, "open");
exec sql open cur;
- exec sql whenever not found do break;
+ strcpy(msg, "move");
+ exec sql move :movevalue in cur;
+ exec sql whenever not found do break;
+
while (1) {
strcpy(msg, "fetch");
exec sql fetch from cur into :personal:ind_personal, :married:ind_married, :children:ind_children;