Skip to content

pdo_odbc: Don't fetch 256 byte blocks for long columns #10809

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Prev Previous commit
Use ZendMM page size minus zend_string overhead
Change recommended by Christoph.

Probably a little better performance wise I have to guess.
  • Loading branch information
NattyNarwhal committed Jun 18, 2025
commit 5dc597513cf85984918ee9250731b22c95579e00
2 changes: 1 addition & 1 deletion ext/pdo_odbc/odbc_stmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "php_pdo_odbc_int.h"

/* Buffer size; bigger columns than this become a "long column" */
#define LONG_COLUMN_BUFFER_SIZE 2048
#define LONG_COLUMN_BUFFER_SIZE (ZEND_MM_PAGE_SIZE- ZSTR_MAX_OVERHEAD)

enum pdo_odbc_conv_result {
PDO_ODBC_CONV_NOT_REQUIRED,
Expand Down