Work around lack of signed types support in SqlServer + PostgreSql