Created
November 22, 2019 12:22
-
-
Save anilmujagic/66167733ac7cc786c4cd430486605ba0 to your computer and use it in GitHub Desktop.
SQLite losing decimals on DB round trip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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