Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support of Long primary keys. #5

Open
izhleba opened this issue May 15, 2016 · 0 comments
Open

Support of Long primary keys. #5

izhleba opened this issue May 15, 2016 · 0 comments

Comments

@izhleba
Copy link
Collaborator

izhleba commented May 15, 2016

Key points
Table.scala:

def _primaryKey: Option[Field[Int, Int]]
TableGenerator.scala:

 val primaryKey: Option[InnerCol] = if (primaryKeyNames.nonEmpty) {
      val pkName = primaryKeyNames.head
      val pk = columns.find(_.rs.name == pkName).getOrElse(sys.error(s"Field for primary key not found in ${table.cat}.${table.name}"))
      if (pk.shortScalaType == "Int") Some(pk) else None
    } else None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant