Skip to content

ORA-01400: cannot insert NULL into ("SCHEMA"."JENKINS_BUILD_NODE"."NAME") #9

Description

@evbruno

Oracle treats empty strings as NULL, so it can't insert when running on "master node", throwing org.hibernate.exception.ConstraintViolationException.

Returning an empty string when on master is the behavior documented here http://javadoc.jenkins-ci.org/hudson/model/Slave.html#getNodeName()

I had to change the constraint for that, but I think displaying something like "(master)" would be nicer.

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions