Skip to content

Fix type with space between limit and precision in SQLiteAdapter #2329

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

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

MasterOdin
Copy link
Member

@MasterOdin MasterOdin commented Dec 3, 2024

Closes #2319

PR updates the type parsing code to allow for a space between the limit and precision arguments to a type for the SQLiteAdapter, e.g. decimal(10, 5).

I also fixed a couple of tests that were testing for Literal::from('decimal') instead of using SQLiteAdapter::PHINX_TYPE_DECIMAL. It doesn't really matter as the assertion converts it to a string (as that's what the column type is) and both evaluate to 'decimal'.

@MasterOdin MasterOdin merged commit 25eaa54 into 0.x Dec 3, 2024
12 checks passed
@MasterOdin MasterOdin deleted the fix-sqlite-decimal branch December 3, 2024 02:50
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.

SQLiteAdapter::getPhinxType does not recognize types with whitespace in definition, e.g. DECIMAL(10, 5)
1 participant