Skip to content

Instantly share code, notes, and snippets.

@anilmujagic
Created November 22, 2019 12:22
Show Gist options
  • Save anilmujagic/66167733ac7cc786c4cd430486605ba0 to your computer and use it in GitHub Desktop.
Save anilmujagic/66167733ac7cc786c4cd430486605ba0 to your computer and use it in GitHub Desktop.
SQLite losing decimals on DB round trip
CREATE TABLE item (amount NUMERIC(18, 7) NOT NULL);
INSERT INTO item VALUES (12345678901.1234567);
SELECT * FROM item; -- 12345678901.1235
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment