Closed (fixed)
Project:
Sage Pay Server Integration for Ubercart
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Oct 2010 at 14:47 UTC
Updated:
10 Nov 2010 at 10:30 UTC
In line 184 of uc_sagepayserver.pages.inc the SQL is SELECT COUNT(*) no_rows....
On PostgreSQL 8.3.12 (Ubuntu) this returns an error. Sorry not sure how to create a patch file, so the code change provided here. If the query is written as follows:-
SELECT COUNT(*) AS no_rows FROM {uc_sagepayserver_transactions} WHERE vendor_transaction_code = '%s'
(Note the 'AS' after the count) - the query runs fine and the transaction completes. On PostgreSQL 8.4 this no longer seems to be an issue. However if this change doesn't cause issues on MySQL it would be fantastic to have it fixed.
By the way - thanks for a really great module.
Comments
Comment #1
leo pitt commentedThanks for the report - apologies for the epic delay in response.
This should be resolved in the next development release. I'll post here when that's up.
Comment #2
leo pitt commentedI've added your bug-fix to HEAD.
Please could you download the next development snapshot when it has been rebuilt, tomorrow, and confirm that it has been resolved?
Many Thanks
Comment #3
christoph commentedI've downloaded the development snapshot and tested against Sagepay Simulator. I confirm that this now works and the transaction completes normally. Thanks for your very quick response.
Comment #4
leo pitt commentedThanks - Hopefully I'll have a new release in the next couple of days that includes this fix.
Comment #5
leo pitt commentedFixed in 6.x-1.4.