Skip to content

Commit 042deef

Browse files
committed
[skip ci] Update comment to mention constant
1 parent b0b3ec0 commit 042deef

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ext/pdo_odbc/odbc_stmt.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,8 @@ static int odbc_stmt_get_col(pdo_stmt_t *stmt, int colno, zval *result, enum pdo
660660
RETCODE rc;
661661

662662
/* fetch it into C->data, which is allocated with a length
663-
* of 2048 bytes; if there is more to be had, we then allocate
663+
* of the page size minus zend_string overhead (LONG_COLUMN_BUFFER_SIZE);
664+
* if there is more to be had, we then allocate
664665
* bigger buffer for the caller to free */
665666

666667
rc = SQLGetData(S->stmt, colno+1, C->is_unicode ? SQL_C_BINARY : SQL_C_CHAR, C->data,
@@ -693,7 +694,7 @@ static int odbc_stmt_get_col(pdo_stmt_t *stmt, int colno, zval *result, enum pdo
693694
* may be passed.
694695
* The behavior in this case is the same as before,
695696
* dividing the data into blocks. However, it has been
696-
* changed from 256 byte to 2048 byte block.
697+
* changed from 256 byte to LONG_COLUMN_BUFFER_SIZE.
697698
*/
698699
ssize_t to_fetch_len;
699700
if (orig_fetched_len == SQL_NO_TOTAL) {

0 commit comments

Comments
 (0)