Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
999569d4ff | |||
5b8bfea0b2 |
@@ -206,7 +206,7 @@ func (ch *ClickHouse) generateCreateTable(tablename string, columns *orderedmap.
|
|||||||
columnDefs = append(columnDefs, fmt.Sprintf("%s %s", quoteIdent(pair.Key), ch.toNullable(pair)))
|
columnDefs = append(columnDefs, fmt.Sprintf("%s %s", quoteIdent(pair.Key), ch.toNullable(pair)))
|
||||||
}
|
}
|
||||||
|
|
||||||
orderBy := make([]string, 0, 2)
|
orderBy := make([]string, 0, 3)
|
||||||
if _, ok := columns.Get("host"); ok {
|
if _, ok := columns.Get("host"); ok {
|
||||||
orderBy = append(orderBy, "host")
|
orderBy = append(orderBy, "host")
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user