From 807df53a4bb833a7cf0dcfaaf9d5c6689e9bc980 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 2 Dec 2006 10:10:59 +0000 Subject: [PATCH] improved sql updates --- src/common/kernel/eressea.c | 2 +- src/common/modules/autoseed.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/kernel/eressea.c b/src/common/kernel/eressea.c index ccf7f6b42..13c89cf09 100644 --- a/src/common/kernel/eressea.c +++ b/src/common/kernel/eressea.c @@ -2519,7 +2519,7 @@ remove_empty_factions(boolean writedropouts) } } if (f->subscription) { - sql_print(("UPDATE subscriptions set status='DEAD' where id=%u\n;", + sql_print(("UPDATE subscriptions set status='DEAD' where id=%u;\n", f->subscription)); } diff --git a/src/common/modules/autoseed.c b/src/common/modules/autoseed.c index 82d83e991..6843c4cd7 100644 --- a/src/common/modules/autoseed.c +++ b/src/common/modules/autoseed.c @@ -636,8 +636,8 @@ autoseed(newfaction ** players, int nsize, boolean new_island) log_printf("New faction (%s), %s at %s\n", itoa36(f->no), f->email, regionname(r, NULL)); if (f->subscription) { - sql_print(("UPDATE subscriptions SET status='ACTIVE', faction='%s', lastturn=%d, password='%s' WHERE id=%u;\n", - factionid(f), f->lastorders, f->override, f->subscription)); + sql_print(("UPDATE subscriptions SET status='ACTIVE', faction='%s', firstturn=%d, lastturn=%d, password='%s' WHERE id=%u;\n", + factionid(f), f->lastorders, f->lastorders, f->override, f->subscription)); } /* remove duplicate email addresses */