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

Support PDO::PARAM_* & Connection::PARAM_* in SQL Output #529

Closed
wants to merge 1 commit into from

Conversation

chrisguitarguy
Copy link
Contributor

This uses the DBAL type system as a fallback when it can, and otherwise
runs the value through json_encode and hopes for the best. The
reasoning here is that on a dry or actual run shouldn't fail because
migrations doesn't know how to output a type.

Fixes #528

I'm not 100% on this solution. Not sure if falling back to a DBAL type is a good idea -- maybe we should just (string) $value in those cases?

This uses the DBAL type system as a fallback when it can, and otherwise
runs the value through `json_encode` and hopes for the best. The
reasoning here is that on a dry or actual run shouldn't fail because
migrations doesn't know how to output a type.
@chrisguitarguy
Copy link
Contributor Author

#560 too care of #528, closing this one.

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

1 participant