/** * Get the check constraint SQL snippet. * * @param session the session * @param asColumnName the column name to use * @return the SQL snippet */ String getCheckConstraintSQL(Session session, String asColumnName) { Expression constraint = getCheckConstraint(session, asColumnName); return constraint == null ? "" : constraint.getSQL(); }
Expression checkExpression = fromColumn.getColumn().getCheckConstraint(session, name); if (checkExpression != null) { col.addCheckConstraint(session, checkExpression);