Field not null undetected

Creating desktop or client-server database solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
AlessioForconi
Posts: 90
Joined: Sun Feb 15, 2015 2:51 pm

Field not null undetected

Post by AlessioForconi » Sun Mar 15, 2015 8:12 pm

Hello everyone
in a table of a database sqlite there are three fields not null, including the id field.
How come when I enter data with one of the fields not null empty this anomaly is not detected and the row is added?

Thank You

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Field not null undetected

Post by Mark » Fri Mar 27, 2015 3:47 pm

Hi,

Empty isn't the same as NULL:

Code: Select all

put empty into myVar
is not the same as

Code: Select all

put NULL into myVar
Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply

Return to “Databases”