mirror of
https://github.com/postgres/postgres.git
synced 2025-05-05 09:19:17 +03:00
One more file to remove
This commit is contained in:
parent
36e8d4e780
commit
2682a4c01d
@ -1,34 +0,0 @@
|
||||
/* $PostgreSQL: pgsql/src/interfaces/ecpg/test/header_test.h,v 1.12 2006/03/11 04:38:40 momjian Exp $ */
|
||||
|
||||
#include "stdlib.h"
|
||||
|
||||
static void
|
||||
Finish(char *msg)
|
||||
{
|
||||
fprintf(stderr, "Error in statement '%s':\n", msg);
|
||||
sqlprint();
|
||||
|
||||
/* finish transaction */
|
||||
exec sql rollback;
|
||||
|
||||
/* and remove test table */
|
||||
exec sql drop table meskes;
|
||||
exec sql commit;
|
||||
|
||||
exec sql disconnect;
|
||||
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
static void
|
||||
warn(void)
|
||||
{
|
||||
fprintf(stderr, "Warning: At least one column was truncated\n");
|
||||
}
|
||||
|
||||
exec sql whenever sqlerror
|
||||
do
|
||||
Finish(msg);
|
||||
exec sql whenever sqlwarning
|
||||
do
|
||||
warn();
|
Loading…
x
Reference in New Issue
Block a user