Segmentation Violation while create procedure !!!!
Posted in 1999
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; }