aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/test/header_test.h
blob: b93221c3394f682e57c0d16ac8d106e91ea388b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
exec sql include sqlca;

exec sql whenever sqlerror
do
				PrintAndStop();
exec sql whenever sqlwarning
do
				warn();

void		PrintAndStop(void)
{
	sqlprint();
	exit(-1);
}

void		warn(void)
{
	fprintf(stderr, "Warning: At least one column was truncated\n");
}