Lines Matching refs:len

181 			int len;  in odbc_stmt_execute()  local
232 len = php_stream_read(stm, buf, 8192); in odbc_stmt_execute()
233 if (len == 0) { in odbc_stmt_execute()
236 SQLPutData(S->stmt, buf, len); in odbc_stmt_execute()
340 P->len = 0; /* is re-populated each EXEC_PRE */ in odbc_stmt_param_hook()
360 P->len = param->max_value_len > 0 ? param->max_value_len : precision; in odbc_stmt_param_hook()
362 P->len *= 2; in odbc_stmt_param_hook()
364 P->outbuf = emalloc(P->len + (P->is_unicode ? 2:1)); in odbc_stmt_param_hook()
378 P->len, in odbc_stmt_param_hook()
379 &P->len in odbc_stmt_param_hook()
404 int len, amount; in odbc_stmt_param_hook() local
406 char *end = P->outbuf + P->len; in odbc_stmt_param_hook()
408 P->len = 0; in odbc_stmt_param_hook()
416 len = php_stream_read(stm, ptr, amount); in odbc_stmt_param_hook()
417 if (len == 0) { in odbc_stmt_param_hook()
420 ptr += len; in odbc_stmt_param_hook()
421 P->len += len; in odbc_stmt_param_hook()
425 P->len = SQL_LEN_DATA_AT_EXEC(sb.sb.st_size); in odbc_stmt_param_hook()
429 P->len = 0; in odbc_stmt_param_hook()
431 P->len = SQL_LEN_DATA_AT_EXEC(0); in odbc_stmt_param_hook()
437 P->len = Z_STRLEN_P(param->parameter); in odbc_stmt_param_hook()
438 memcpy(P->outbuf, Z_STRVAL_P(param->parameter), P->len); in odbc_stmt_param_hook()
440 P->len = SQL_LEN_DATA_AT_EXEC(Z_STRLEN_P(param->parameter)); in odbc_stmt_param_hook()
444 P->len = SQL_NULL_DATA; in odbc_stmt_param_hook()
455 P->len = Z_STRLEN_P(param->parameter); in odbc_stmt_param_hook()
456 memcpy(P->outbuf, Z_STRVAL_P(param->parameter), P->len); in odbc_stmt_param_hook()
459 P->len = ulen; in odbc_stmt_param_hook()
460 memcpy(P->outbuf, S->convbuf, P->len); in odbc_stmt_param_hook()
464 P->len = SQL_LEN_DATA_AT_EXEC(Z_STRLEN_P(param->parameter)); in odbc_stmt_param_hook()
477 switch (P->len) { in odbc_stmt_param_hook()
484 switch (pdo_odbc_ucs22utf8(stmt, P->is_unicode, P->outbuf, P->len, &ulen)) { in odbc_stmt_param_hook()
489 srclen = P->len; in odbc_stmt_param_hook()
615 static int odbc_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, int *call… in odbc_stmt_get_col() argument
686 *len = used; in odbc_stmt_get_col()
695 *len = 0; in odbc_stmt_get_col()
704 *len = 0; in odbc_stmt_get_col()
709 *len = C->fetched_len; in odbc_stmt_get_col()
717 *len = 0; in odbc_stmt_get_col()
722 switch (pdo_odbc_ucs22utf8(stmt, C->is_unicode, *ptr, *len, &ulen)) { in odbc_stmt_get_col()
734 *len = ulen; in odbc_stmt_get_col()
778 SQLSMALLINT len = 0; in odbc_stmt_get_attr() local
779 rc = SQLGetCursorName(S->stmt, buf, sizeof(buf), &len); in odbc_stmt_get_attr()
782 ZVAL_STRINGL(val, buf, len, 1); in odbc_stmt_get_attr()