Line name = strings.Replace(name, alias+"_", "", 1)
in doScan() causes an issue if alias+"_" is part of the column name. Eg.
column name: "order_id", alias "r" will produce "ordeid" and hence fail.
For now make sure your alias+"_" is not part of a column name.