Fix for diff between sql & sqlite