improve sqlparser

fix issue #697