Questions tagged [notnull]

This tag refers to an object or type that is not null (none).

Use this tag for questions related to not-null types or objects (i.e. detecting them, handling them, etc.).

295 questions
0
votes
1 answer

Getting the error "VEVI: Variable is not properly set" in Eiffel

I am trying to make an iterator for for a linked_list in Eiffel. I am getting this error: Variable is not set properly. Class: ITERATOR_ON_COLLECTION [E] Feature: make Attribute(s): {ITERATOR}.target Line: 30 I know it's because of void safety but…
0
votes
1 answer

Symfony3 form errors are not shown(just notNull/notBlank), the rest of them are working

I try to validate a symfony3 form, I use two constraints for each entity field, (NotBlank and Float). Float constraint's error message are shown correctly, for NotBlank error messages are shown just for whole form(global errors) not for each…
Kiril
  • 11
  • 3
0
votes
2 answers

ConstraintViolationException - extract field name which caused exception

I'm using hibernate-validator with a JAX-RS service to validate query parameters using @NotNull: @GET public Response doSomething(@NotNull @QueryParam("myParam") String myParam) {...} This works as expected and throws a ConstraintViolationException…
user1491636
  • 2,355
  • 11
  • 44
  • 71
0
votes
1 answer

After using a trigger - ERROR: null value in column "group_id" violates not-null constraint

I'm using PostgreSQL 8.1.23 on x86_64-redhat-linux-gnu I have to write a database for reserving seats on language courses and there's a requirement there should be a trigger, which will check whether lector, we're trying to write into new group, has…
jared94
  • 1
  • 2
0
votes
0 answers

Bean Validation does not work for model properties which are not tied to view

I figured out, that my bean validation does not work for model properties which are not tied to view. Model: @NotNull private String name; public String submit() { ... } View:
Dennis
  • 1
  • 1
0
votes
3 answers

ORACLE find first non-null value from history table

I have a history table where I want to return ONLY the first STATUS value which is not null (if any). I haven't got much ORACLE experience and I have searched for this but couldn't find anything I need. EDIT Example of my table below. ITEM NAME …
Magic Mick
  • 1,475
  • 1
  • 21
  • 32
0
votes
4 answers

Java if condition code optimise

Kindly help me if there is any other easy way to optimise/implement the code on the below possibilities. Variables like home, bill, reg can either be empty string("") or null depending on the scenario. My code public void helloWorld() { List…
user3492471
  • 93
  • 2
  • 16
0
votes
1 answer

MySQL - Constraint NOT NULL Error 1064

i want to create a table and i get an error : Why doesn't he like my constraint? is mysql so different to sql? because 2 years ago i created the same table with no problems in sql :( here the whole code CREATE table Mitarbeiter( Mitarbeiternummer…
user3090164
  • 55
  • 1
  • 6
0
votes
3 answers

When to write NOT NULL when creating a MySQL table column

What's the difference or benefit of writing "NOT NULL" in a mysql field creation... For example if I'm creating a table like this... CREATE TABLE IF NOT EXISTS game( id INT(11) NOT NULL AUTO_INCREMENT, name VARCHAR(128) NOT NULL, description…
Tharindu Thisarasinghe
  • 3,846
  • 8
  • 39
  • 70
0
votes
1 answer

Why (By Default) Foreign Key is Null ? . . and Can Foreign Key and Primary Key be the same Column?

I have followed following steps: Created Two Tables (No Constraint) Alter Table#1 (Add Not Null and Primary Key Constraint) Alter Table#2 (Add Foreign Key Constraint) . . And now Trying to Add Primary Key Constraint to Column which is Foreign Key…
0
votes
3 answers

i tried an html program for checking validation for empty field but it does't working?

i tried an html program for checking validation for empty field but it does't working? please help me to show what is the error in my code? the code snippet is below.. i tried an html program for checking validation for empty field but it does't…
Anoop
  • 35
  • 10
0
votes
0 answers

How to plot pandas notnull values over time?

I've got the following Pandas dataframes: >>> df Qual_B temp_B relhum_B Qual_F temp_F relhum_F Date 1948-01-01 01:00:00 5 -6.0 96 NaN …
user3017048
  • 2,711
  • 3
  • 22
  • 32
0
votes
2 answers

Oracle : Checking for NOT NULL in Tuples

Objective : To select records from Order table where (delivery_date, type) is NOT IN (NULL, 'A'). select * from Orders; Table : Orders No Type Delivery_Date 1 A null 2 B 20150120 3 A 20150115 4 A …
Murali Rao
  • 2,287
  • 11
  • 18
0
votes
4 answers

How can I use MySQL NOT NULL with PHP?

I've form to insert values in MySQL database with PHP (Example code is below):
">