aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/test/test2.pgc
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/ecpg/test/test2.pgc')
-rw-r--r--src/interfaces/ecpg/test/test2.pgc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/interfaces/ecpg/test/test2.pgc b/src/interfaces/ecpg/test/test2.pgc
index 701b11afb5c..0d11c0c38a8 100644
--- a/src/interfaces/ecpg/test/test2.pgc
+++ b/src/interfaces/ecpg/test/test2.pgc
@@ -12,6 +12,9 @@ typedef union { int integer; short smallint; } ind;
#define BUFFERSIZ 8
exec sql type str is varchar[BUFFERSIZ];
+exec sql declare cur cursor for
+ select name, born, age, married, children from meskes;
+
int
main ()
{
@@ -34,9 +37,6 @@ exec sql end declare section;
exec sql var ind_married is long;
- exec sql declare cur cursor for
- select name, born, age, married, children from meskes;
-
char msg[128];
FILE *dbgs;