summaryrefslogtreecommitdiff
path: root/ext/pdo_mysql/mysql_driver.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-07-20 03:38:33 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-07-20 03:38:33 +0000
commit97e8c6f4a98a2074aa2261f6e64f983277e3b2ac (patch)
tree259c9dcdded49ea9c404a311a0b107bfed37e610 /ext/pdo_mysql/mysql_driver.c
parent79f3cb9856abe0537f3fbd6004c7e2ed82aaeb84 (diff)
downloadphp-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-xext/pdo_mysql/mysql_driver.c2
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