fprintf(stderr,"%s: open database: %s (%s)\n",argv[0],et,ed);
return 1;
}
+ fprintf(stderr, "[%d]: DB '%s'\n", getpid(), dbstring);
if (count_statistics) edg_wll_InitStatistics(ctx);
if (!ctx->use_transactions && transactions != 0) {
fprintf(stderr, "[%d]: transactions aren't supported!\n", getpid());
ctx->use_transactions = 1;
pid = getpid();
- asprintf(&cmd_create, "create table test%d (item int)", pid);
+ asprintf(&cmd_create, "create table test%d (item int) engine='innodb'", pid);
asprintf(&cmd_insert, "insert into test%d (item) values (1)", pid);
asprintf(&cmd_select, "select item from test%d", pid);
asprintf(&cmd_drop, "drop table test%d", pid);
edg_wll_ExecStmt(ctx, cmd_drop, NULL);
edg_wll_SetError(ctx, err, desc);
err1:
+ ctx->use_transactions = 0;
ok:
free(cmd_create);
free(cmd_insert);