Added nested structure scan.

This commit is contained in:
sub0Zero 2019-03-09 14:20:44 +01:00 committed by zer0sub
parent 7d7dda3b7a
commit 3f4b5c69d3
5 changed files with 124 additions and 21 deletions

View file

@ -74,16 +74,24 @@ func (c *baseColumn) setTableName(table string) error {
}
func (c *baseColumn) SerializeSqlForColumnList(out *bytes.Buffer) error {
c.SerializeSql(out)
if c.table != "" {
_, _ = out.WriteString(" AS \"" + c.table + "." + c.name + "\"")
}
return nil
}
func (c *baseColumn) SerializeSql(out *bytes.Buffer) error {
if c.table != "" {
_, _ = out.WriteString(c.table)
_, _ = out.WriteString(".")
}
_, _ = out.WriteString(c.name)
return nil
}
func (c *baseColumn) SerializeSql(out *bytes.Buffer) error {
return c.SerializeSqlForColumnList(out)
return nil
}
type bytesColumn struct {