You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Key points
Table.scala:
def _primaryKey: Option[Field[Int, Int]]
TableGenerator.scala:
The text was updated successfully, but these errors were encountered: