Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated sqlite3 and better-sqlite3 to use more accurate numeric types #6063

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mohammedbalila
Copy link
Contributor

Fixing sqlite3 and better-sqlite3 numeric types. When trying to use knex.decimal() or knex.double() with sqlite3 it turns them to float. Issue #5789

@mohammedbalila
Copy link
Contributor Author

Check this for more context on what the PR does #5789 (comment)

@coveralls
Copy link

Coverage Status

coverage: 92.845% (+0.002%) from 92.843%
when pulling fdd5f29 on mohammedbalila:fix-sqlite-numeric-types-5789
into 9659a20 on knex:master.

Copy link
Member

@rluvaton rluvaton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be breaking change even though it's correct, @kibertoad WDYT?

Copy link
Member

@rluvaton rluvaton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also add another tests in integration so we are sure this is working...

@@ -755,6 +755,7 @@ describe('BetterSQLite3 SchemaBuilder', function () {
equal(tableSql[0].sql, 'alter table `users` add column `foo` float');
});


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove

@mohammedbalila
Copy link
Contributor Author

Can you also add another tests in integration so we are sure this is working...

There are two folders integration and integration2, would you mind telling the difference so I can place the tests correctly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants