[MySQL] Add support for WITH statements and Common Table Expressions.

This commit is contained in:
go-jet 2020-05-24 17:56:35 +02:00
parent 8aa894730c
commit f5fae577d7
6 changed files with 42 additions and 13 deletions

View file

@ -69,7 +69,7 @@ func newSelectStatement(table ReadableTable, projections []Projection) SelectSta
&newSelect.From, &newSelect.Where, &newSelect.GroupBy, &newSelect.Having, &newSelect.Window, &newSelect.OrderBy,
&newSelect.Limit, &newSelect.Offset, &newSelect.For, &newSelect.ShareLock)
newSelect.Select.Projections = projections
newSelect.Select.ProjectionList = projections
newSelect.From.Table = table
newSelect.Limit.Count = -1
newSelect.Offset.Count = -1