3 * (c) Copyright 1988-1998 by the Massachusetts Institute of Technology.
4 * For copying and distribution information, please see the file
8 #include <mit-copyright.h>
16 extern void sqlglm(char *, unsigned int *, unsigned int *);
26 EXEC SQL BEGIN DECLARE SECTION;
28 EXEC SQL END DECLARE SECTION;
29 int bufsize = 256, msglength = 0;
31 sqlglm(err_msg, &bufsize, &msglength);
32 err_msg[msglength] = '\0';
33 fprintf(stderr, "Fatal SQL error:\n%s", err_msg);