bug fix

analyze sql one char by one