add test for ticket gh-259

fix :: operator in sql parser