You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have this domain type. My rust code uses macros and it gives error "returned from database: domain uint_256 does not allow null values". However I am not passing null values I am passing BigDecimal values as shown. Also this is my prepare call cargo sqlx prepare --database-url {{DATABASE_URL}} -- --all-targets
CREATE DOMAIN uint_256 AS NUMERIC NOT NULL
CHECK (VALUE >= 0 AND VALUE < 2::numeric ^ 256)
CHECK (SCALE(VALUE) = 0);
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have this domain type. My rust code uses macros and it gives error "returned from database: domain uint_256 does not allow null values". However I am not passing null values I am passing BigDecimal values as shown. Also this is my prepare call cargo sqlx prepare --database-url {{DATABASE_URL}} -- --all-targets
Beta Was this translation helpful? Give feedback.
All reactions