From: Joey Schulze Date: Fri, 1 Feb 2002 09:57:32 +0000 (+0000) Subject: Damn, I forgot another occurrence of the hardcoded table name sales X-Git-Url: https://git.infodrom.org/?p=infodrom.org%2Fservice.infodrom.org;a=commitdiff_plain;h=ce9a2db903e65c1cdf9ea08a639270cd47875446;hp=ad5a56229d9287533b7f79be63b86b5907cc81c6 Damn, I forgot another occurrence of the hardcoded table name sales --- diff --git a/src/InfoCon/buch/infocon b/src/InfoCon/buch/infocon index 8feed84..c634977 100755 --- a/src/InfoCon/buch/infocon +++ b/src/InfoCon/buch/infocon @@ -246,7 +246,7 @@ sub buchung_input $input[6] *= -1 if ($input[6] > 0); } - $query = sprintf ("INSERT INTO sales VALUES (%d,'%s','%s','%s',%8.2f,%8.2f,%8.2f,%d)", + $query = sprintf ("INSERT INTO $table VALUES (%d,'%s','%s','%s',%8.2f,%8.2f,%8.2f,%d)", &get_next_nr(), &date_to_string($input[0]), $input[1], $input[2], $input[4], $input[5], $input[6], $input[7]); $sth = $dbh->do($query);