aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/test/test2.pgc
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2003-06-13 10:50:58 +0000
committerMichael Meskes <meskes@postgresql.org>2003-06-13 10:50:58 +0000
commit26188e8c1751a2ef97fb6192fbc1bbc9f313a4d6 (patch)
tree664f93ef0ae0f58d9deaeb44cf5a35113fe605ab /src/interfaces/ecpg/test/test2.pgc
parenta2d08b99c2a2d5fff3e883098588fb2fe2d664dc (diff)
downloadpostgresql-26188e8c1751a2ef97fb6192fbc1bbc9f313a4d6.tar.gz
postgresql-26188e8c1751a2ef97fb6192fbc1bbc9f313a4d6.zip
- Enable FETCH without INTO.
- Compatibility functions for INFORMIX handling of DECLARE statement.
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;