Skip to content

Commit

Permalink
Fix 'make test' and add a _PG_init
Browse files Browse the repository at this point in the history
  • Loading branch information
leto committed Jan 29, 2010
1 parent 0a73291 commit f960f20
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -36,5 +36,5 @@ PARROTLINKFLAGS = $(shell parrot_config inst_libparrot_linkflags)
override CPPFLAGS := -I$(PARROTINC) -I$(srcdir) $(CPPFLAGS)
override CFLAGS := $(PARROTLDFLAGS) $(PARROTLINKFLAGS) $(CFLAGS)

test:
test: all
pg_prove --pset tuples_only=1 $(TESTS)
12 changes: 12 additions & 0 deletions src/handler/plparrot.c
Expand Up @@ -16,6 +16,18 @@
PG_MODULE_MAGIC;
int execq(text *sql, int cnt);

void
_PG_init(void)
{
/* Be sure we do initialization only once */
static bool inited = false;

if (inited)
return;

inited = true;
}

int
execq(text *sql, int cnt)
{
Expand Down

0 comments on commit f960f20

Please sign in to comment.