mirror of
https://github.com/standardebooks/web.git
synced 2025-07-05 22:30:30 -04:00
Disable emulate prepares in DB
This commit is contained in:
parent
4ff5512544
commit
1c055d3e6f
2 changed files with 12 additions and 11 deletions
|
@ -44,20 +44,22 @@ $faPassword = get_cfg_var('se.secrets.fractured_atlas.password');
|
|||
// 946554ca-ffc0-4259-bcc6-be6c844fbbdc Regular donation, patrons, private, recurring
|
||||
// 416608c6-cbf5-4153-8956-cb9051bb849e Regular donation, patrons, public, one time, in memory of
|
||||
|
||||
$pendingPayments = Db::Query('
|
||||
start transaction;
|
||||
Db::Query('start transaction');
|
||||
|
||||
$pendingPayments = Db::Query('
|
||||
SELECT *
|
||||
from PendingPayments
|
||||
where ProcessedOn is null;
|
||||
|
||||
UPDATE PendingPayments
|
||||
set ProcessedOn = utc_timestamp()
|
||||
where ProcessedOn is null;
|
||||
|
||||
commit;
|
||||
where ProcessedOn is null
|
||||
');
|
||||
|
||||
Db::Query('
|
||||
UPDATE PendingPayments
|
||||
set ProcessedOn = utc_timestamp()
|
||||
where ProcessedOn is null
|
||||
');
|
||||
|
||||
Db::Query('commit');
|
||||
|
||||
if(sizeof($pendingPayments) == 0){
|
||||
// Don't start the very slow Selenium driver if we have nothing to process
|
||||
exit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue