since u_state is a string field, when you assign an integer, it was converting it to 1.0. 

You can also try record.u_state = '1';

But you will always need quotes while assigning a value to a string field.


Please mark this response as correct or helpful if it assisted you with your question.