Skip to content

Conversation

@cmb69
Copy link
Member

@cmb69 cmb69 commented May 11, 2021

If SQLDescribeParam() fails for a parameter, we must not assume
SQL_LONGVARCHAR for any param which is not PDO_PARAM_LOB. At least
mapping PDO_PARAM_INT to SQL_INTEGER should be safe, and not
introduce a BC break.

If `SQLDescribeParam()` fails for a parameter, we must not assume
`SQL_LONGVARCHAR` for any param which is not `PDO_PARAM_LOB`.  At least
mapping `PDO_PARAM_INT` to `SQL_INTEGER` should be safe, and not
introduce a BC break.
@cmb69 cmb69 added the Bug label May 11, 2021
@nikic
Copy link
Member

nikic commented May 11, 2021

Given the recent fiasco with a similar change to PDO pgsql, this seems rather risky...

@cmb69
Copy link
Member Author

cmb69 commented May 11, 2021

Looks quite different to me, but I'd be fine with rebasing onto master.

Copy link
Member

@nikic nikic left a comment

Choose a reason for hiding this comment

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

After taking a closer look, yes, I think this is fine. It's fallback code, the integer type is generic, and it's still nullable.

I don't know much about odbc, but on the surface this looks reasonable to me.

@cmb69 cmb69 closed this in 23a3bbb May 12, 2021
@cmb69 cmb69 deleted the cmb/44643 branch May 12, 2021 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants