Treat columns with spaces inbetween [s3Select] (#6597)

replace the double/single quotes with backticks for the xwb1989/sqlparser
to recognise such queries.

Fixes #6589
This commit is contained in:
Praveen raj Mani
2018-10-17 23:31:26 +05:30
committed by Dee Koder
parent c998d1ac8c
commit cef044178c
4 changed files with 19 additions and 11 deletions

View File

@@ -50,7 +50,6 @@ func (reader *Input) runSelectParser(selectExpression string, myRow chan *Row) {
// records, and the where clause.
func (reader *Input) ParseSelect(sqlInput string) ([]string, string, int64, interface{}, []string, *SelectFuncs, error) {
// return columnNames, alias, limitOfRecords, whereclause,coalStore, nil
stmt, err := sqlparser.Parse(sqlInput)
var whereClause interface{}
var alias string