improved sql updates

This commit is contained in:
Enno Rehling 2006-12-02 10:10:59 +00:00
parent a195392c18
commit 807df53a4b
2 changed files with 3 additions and 3 deletions

View File

@ -2519,7 +2519,7 @@ remove_empty_factions(boolean writedropouts)
} }
} }
if (f->subscription) { 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)); f->subscription));
} }

View File

@ -636,8 +636,8 @@ autoseed(newfaction ** players, int nsize, boolean new_island)
log_printf("New faction (%s), %s at %s\n", itoa36(f->no), log_printf("New faction (%s), %s at %s\n", itoa36(f->no),
f->email, regionname(r, NULL)); f->email, regionname(r, NULL));
if (f->subscription) { if (f->subscription) {
sql_print(("UPDATE subscriptions SET status='ACTIVE', faction='%s', lastturn=%d, password='%s' WHERE id=%u;\n", sql_print(("UPDATE subscriptions SET status='ACTIVE', faction='%s', firstturn=%d, lastturn=%d, password='%s' WHERE id=%u;\n",
factionid(f), f->lastorders, f->override, f->subscription)); factionid(f), f->lastorders, f->lastorders, f->override, f->subscription));
} }
/* remove duplicate email addresses */ /* remove duplicate email addresses */