Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Igor — — source: Informix-list mailing list archive (1991-1998)
Hi all
I built following executable to create stored procedures.
It works good on Sun platform , but gives segmentation violation on
IBM.
Ma y be somebody know what's the reason
Regards
Igor
#include <stdio.h>
#include <string.h>
$include sqlca;
$include sqlda;
$include datetime;
main(argc,argv)
int argc;
char **argv;
{
exec sql begin declare section;
char *db_name;
char *str;
exec sql end declare section;
if(argc<3)
{
printf("usage : create_sp file_name db_name \\n");
return 0;
}
db_name = argv[2];
$database :db_name;
str = argv[1];
$create procedure from :str;
return 0;
}
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.