Closed (fixed)
Project:
UC Recurring Payments and Subscriptions
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Mar 2010 at 11:22 UTC
Updated:
15 Mar 2010 at 11:40 UTC
Hi there,
When I upgraded the update 6008 failed with the following error:
So I checked a little closer and I saw that uc_recurring_extensions was initialized with 3 entries numbered 1, 2 and 3. And that UPDATE changes these numbers from 1, 2, 3 to 0, 1, 2. Good. Now, why we got the error, I'm not too sure. I'm using PostgreSQL...
In any event, I'm not too worried about this error in itself, what I'm posting about is the uc_recurring_install(). It is still inserting using 1, 2 and 3, when from what I understand, you should have changed it to 0, 1, 2 instead.
[...]
// I cut the string to show it on 3 lines, it is correct in the source.
db_query("INSERT INTO {uc_recurring_extensions}
(pfid, rebill_attempt, time_to_extend)
VALUES (NULL, 1, %d), (NULL, 2, %d), (NULL, 3, 0)", $three_days, $five_days);
[...]
Ain't that wrong?
Thank you.
Alexis Wilke
Comments
Comment #1
univate commentedNot sure about the PostgreSQL
But fixed the install, thanks.