PayasR / paralite

0 stars 0 forks source link

an error message on syntax error too terse #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
any query that contains a syntax error

What is the expected output? What do you see instead?
I expect a hint on what was wrong.

But we see a message "syntax error please check it" or something.

Original issue reported on code.google.com by Taura.Kenjiro@gmail.com on 30 May 2013 at 8:58

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

paralite test.db "select a from x group x"

(It should be "group by x")

What is the expected output? What do you see instead?

Currently, it outputs:
ERROR: Traceback (most recent call last):
  File "/home/chenting/googlecode/paralite/ParaLite-3.0/bin/m_paraLite.py", line 338, in make
    parse_result = newparser.parse(self.sql)
  File "/home/chenting/googlecode/paralite/ParaLite-3.0/lib/newparser.py", line 299, in parse
    parseResult = (sql_stmt + stringEnd).parseString(sql)
  File "/home/chenting/googlecode/paralite/ParaLite-3.0/lib/pyparsing_py2.py", line 1100, in parseString
    raise exc
ParseException: Expected stringEnd (at char 16), (line:1, col:17)

Original comment by tingchen...@gmail.com on 16 Jun 2013 at 1:06

GoogleCodeExporter commented 9 years ago

Original comment by tingchen...@gmail.com on 19 Jun 2013 at 1:34