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

fix(DB2): Instance of DateTimeType cannot be converted to string #6313

Open
wants to merge 1 commit into
base: 3.8.x
Choose a base branch
from

Conversation

Tofandel
Copy link
Contributor

@Tofandel Tofandel commented Feb 21, 2024

Issue found in https://github.com/doctrine/dbal/pull/6280/files#r1467725285

Q A
Type bug
Fixed issues

Summary

$column['type'] is an instance of a Dbal Type which cannot be converted to a string (because they do not have a __toString method

No idea when this should occur or how to write a test for it, but I just know this piece of code throws an error when it does run

@Tofandel Tofandel changed the title Fix error "Instance of DateTimeType" cannot be converted to string fix(DB2): Instance of DateTimeType cannot be converted to string Feb 21, 2024
@derrabus
Copy link
Member

No idea when this should occur or how to write a test for it

A test would be good though. How would I know we're actually fixing an issue here and how can I be sure, we're not reintroducing that issue again in the future?

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

Successfully merging this pull request may close these issues.

None yet

2 participants