Add more comments and fix code style

This commit is contained in:
ngaut
2015-10-04 16:30:40 +08:00
parent 912164d251
commit 9e1f700679

View File

@ -3005,6 +3005,7 @@ SubSelect:
{
s := $2.(*stmts.SelectStmt)
src := yylex.(*lexer).src
// See the implemention of yyParse function
lines := yyS[yypt-1].line-1
pos := 0
if lines > 0 {
@ -3023,7 +3024,7 @@ SubSelect:
end := yyS[yypt].col-1
if end < base {
s.SetText(src[base:])
} else{ // when yypt in new line
} else { // when yypt in new line
s.SetText(src[base:end])
}
$$ = &subquery.SubQuery{Stmt: s}