fix SQL updates for R2
[mr2813] fix CalculateBoardingPositionOf definition chain (win compile fix)