MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / pr_error

Function pr_error

examples/api/api1.c:126–138  ·  view source on GitHub ↗

* Print the status, the SQLCODE, and exit. * Also, indicate which operation the error occured on. */

Source from the content-addressed store, hash-verified

124 * Also, indicate which operation the error occured on.
125 */
126int pr_error (long* status, char* operation)
127{
128 printf("[\n");
129 printf("PROBLEM ON \"%s\".\n", operation);
130
131 isc_print_status(status);
132
133 printf("SQLCODE:%d\n", isc_sqlcode(status));
134
135 printf("]\n");
136
137 return 1;
138}
139

Callers 10

NBackupMethod · 0.85
attach_databaseMethod · 0.85
detach_databaseMethod · 0.85
cleanHistoryMethod · 0.85
get_database_sizeMethod · 0.85
get_odsMethod · 0.85
backup_databaseMethod · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected