php / pecl-database-pdo_ibm

PDO driver for IBM databases
http://pecl.php.net/package/pdo_ibm
Apache License 2.0
17 stars 14 forks source link

Implement dbcs_alloc for PASE in PDO_IBM #9

Closed NattyNarwhal closed 2 years ago

NattyNarwhal commented 2 years ago

ibm_db2 has it, and it's an unfortunate workaround that's sometimes needed to do how unreliable it can be to detected truncation. Ideally this option should be made obsolete, but until it can be, this can be enabled for situations where EBCDIC characters expand into longer UTF-8 ones.

Running the tests, none seem affected, same amount of pass/fail.

NattyNarwhal commented 2 years ago

User reports this works fine for them, so merging. I agree some cleanup would be a good idea though.