This needs to be a prepared statement.

This commit is contained in:
Bradley M. Kuhn 2015-12-06 15:45:22 -08:00
parent 57411034af
commit 6c71c75a2c

View file

@ -68,8 +68,8 @@ my $sthInsertRequest = $dbhNew->prepare('INSERT INTO request' .
"values(?, ?, ?, date('now'), ?," .
'"import of old database; exact date of this request is unknown")');
my $sthPostalAddress = 'INSERT INTO postal_address(formatted_address, type_id, date_encountered)' .
"VALUES(?, $paypalPayerTypeId, date('now'))";
my $sthPostalAddress = $dbhNew->prepare('INSERT INTO postal_address(formatted_address, type_id, date_encountered)' .
"VALUES(?, $paypalPayerTypeId, date('now'))");
my $sthOld = $dbhOld->prepare('SELECT * from supporters order by id;');
$sthOld->execute();