mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
From: Michael Meskes <meskes@topsystem.de>
+ Thu Apr 23 09:27:16 CEST 1998 + + - Also allow call in whenever statement with the same functionality + as do. + + Thu Apr 23 12:29:28 CEST 1998 + + - Also rewrote variable declaration part. It is now possible to + declare more than one variable per line. + - Set version to 2.1.0 + + Fri Apr 24 13:50:15 CEST 1998 + + - Fixed some bugs. + - Set version to 2.1.1
This commit is contained in:
@ -119,5 +119,7 @@ exec sql end declare section;
|
||||
|
||||
exec sql drop table perftest1;
|
||||
|
||||
exec sql commit;
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ exec sql begin declare section;
|
||||
} ind_birth;
|
||||
} ind_personal;
|
||||
long ind_married;
|
||||
char married[9]="a";
|
||||
char married[9];
|
||||
exec sql end declare section;
|
||||
char msg[128], command[128];
|
||||
FILE *dbgs;
|
||||
@ -60,7 +60,7 @@ exec sql end declare section;
|
||||
|
||||
while (not_found == 0) {
|
||||
strcpy(msg, "fetch");
|
||||
exec sql fetch cur into :personal:ind_personal, :married:ind_married;
|
||||
exec sql fetch cur into :personal:ind_personal, :married:ind_married, :personal.birth.born;
|
||||
if (not_found == 0)
|
||||
printf ("%8.8s was born %d (age = %d) %s%s\n", personal.name.arr, personal.birth.born, personal.birth.age, ind_married ? "" : "and married ", ind_married ? "" : married);
|
||||
}
|
||||
|
Reference in New Issue
Block a user