Don't normalize away null values

Authored by Arlolra on Oct 24 2016, 10:33 PM.


Don't normalize away null values

  • An MWOAuthConsumer is often initialized w/ id == null so that the field auto-increments when being inserted. Normalizing to an int converts the value to 0, which doesn't play nice w/ sqlite.
  • Maybe a better solution is to explicitly set the field to null in the row before inserting, and keeping this normalization?

Change-Id: I06858d50687efdb94c76c6e9360185138449d24e