CodeLionX / actordb

Actor Database System Framework using Akka
MIT License
0 stars 2 forks source link

Relation and Record definitions allow using ColumnDefs of SAME NAME as long as they're of different TYPE #17

Open srfc opened 6 years ago

srfc commented 6 years ago

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

Record(Seq(ColumnDef[Int]("id"), ColumnDef[String]("id")))  // does not fail ever

Steps to Reproduce the Problem

  1. see above

Specifications and Environment

CodeLionX commented 6 years ago

In the mean time we changed our column definitions to be

Record(Set(ColumnDef[Int]("id"), ColumnDef[String]("id")))  // does not fail ever