I am not sure what the cause is but another developer here checked in a commit of a sql file and I am unable to see the differences in the browser using Stash, I can view the source in the browser under history with no issues.
Note: I have not yet upgraded to BitBucket Server, my current version is Stash v3.4.1