Answer the question
In order to leave comments, you need to log in
Why does the empty input `piece` int(32) DEFAULT 1 get 0?
Why does the empty input `piece` int(32) DEFAULT 1 get 0 in the table?
Answer the question
In order to leave comments, you need to log in
Because an empty string when converted to int(32) gives 0.
DEFAULT 1 will work only if the `piece` field is completely absent in the request.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question