Fixed vBulletin 5 Import: BIGINT UNSIGNED value is out of range

Slavik

XenForo moderator
Staff member
On line 465 we calculate reply counts using:

Code:
                node.totalcount - node.textcount AS replycount,

Which can result in an out of range error. As we can recalculate this on a rebuild in XenForo would seem best to ignore this calculation.
 
In this case, I believe that GREATEST(CAST(node.totalcount AS SIGNED) - CAST(node.textcount AS SIGNED), 0) AS replycount, should be sufficient to resolve the issue (while still returning the expected content).
 
Top Bottom