diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2005-07-20 03:38:33 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2005-07-20 03:38:33 +0000 |
| commit | 97e8c6f4a98a2074aa2261f6e64f983277e3b2ac (patch) | |
| tree | 259c9dcdded49ea9c404a311a0b107bfed37e610 /ext/pdo_mysql/mysql_driver.c | |
| parent | 79f3cb9856abe0537f3fbd6004c7e2ed82aaeb84 (diff) | |
| download | php-git-97e8c6f4a98a2074aa2261f6e64f983277e3b2ac.tar.gz | |
Proper handling for databases that need to pre-calculate length of large
columns, which is not normally done for performance reasons.
Diffstat (limited to 'ext/pdo_mysql/mysql_driver.c')
| -rwxr-xr-x | ext/pdo_mysql/mysql_driver.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/pdo_mysql/mysql_driver.c b/ext/pdo_mysql/mysql_driver.c index 68563f3eb0..b7297800a7 100755 --- a/ext/pdo_mysql/mysql_driver.c +++ b/ext/pdo_mysql/mysql_driver.c @@ -208,6 +208,8 @@ static int mysql_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, dbh->alloc_own_columns = 1; + S->max_length = pdo_attr_lval(driver_options, PDO_ATTR_MAX_COLUMN_LEN, 0 TSRMLS_CC); + return 1; #else |
