Open srfc opened 6 years ago
Relation and Record definitions allow using ColumnDef's of same name as long as they're of different type.
ColumnDef
Adding multiple ColumnDef's with the same name to a record should fail at compile-time or runtime.
Record(Seq(ColumnDef[Int]("id"), ColumnDef[String]("id"))) // does not fail ever
In the mean time we changed our column definitions to be
Record(Set(ColumnDef[Int]("id"), ColumnDef[String]("id"))) // does not fail ever
Bug Report
Relation and Record definitions allow using
ColumnDef
's of same name as long as they're of different type.Expected Behavior
Adding multiple
ColumnDef
's with the same name to a record should fail at compile-time or runtime.Actual Behavior
Steps to Reproduce the Problem
Specifications and Environment