Lines Matching refs:S
51 pdo_mysql_stmt *S = NULL; in _pdo_mysql_error() local
56 S = (pdo_mysql_stmt*)stmt->driver_data; in _pdo_mysql_error()
58 einfo = &S->einfo; in _pdo_mysql_error()
64 if (S && S->stmt) { in _pdo_mysql_error()
65 einfo->errcode = mysql_stmt_errno(S->stmt); in _pdo_mysql_error()
100 if (S && S->stmt) { in _pdo_mysql_error()
101 strcpy(*pdo_err, mysql_stmt_sqlstate(S->stmt)); in _pdo_mysql_error()
125 pdo_mysql_stmt *S = (pdo_mysql_stmt*)stmt->driver_data; in pdo_mysql_fetch_error_func() local
126 einfo = &S->einfo; in pdo_mysql_fetch_error_func()
167 pdo_mysql_stmt *S = ecalloc(1, sizeof(pdo_mysql_stmt)); in mysql_handle_preparer() local
177 S->H = H; in mysql_handle_preparer()
178 stmt->driver_data = S; in mysql_handle_preparer()
202 if (!(S->stmt = mysql_stmt_init(H->server))) { in mysql_handle_preparer()
210 if (mysql_stmt_prepare(S->stmt, sql, sql_len)) { in mysql_handle_preparer()
229 S->num_params = mysql_stmt_param_count(S->stmt); in mysql_handle_preparer()
231 if (S->num_params) { in mysql_handle_preparer()
232 S->params_given = 0; in mysql_handle_preparer()
234 S->params = NULL; in mysql_handle_preparer()
236 S->params = ecalloc(S->num_params, sizeof(MYSQL_BIND)); in mysql_handle_preparer()
237 S->in_null = ecalloc(S->num_params, sizeof(my_bool)); in mysql_handle_preparer()
238 S->in_length = ecalloc(S->num_params, sizeof(unsigned long)); in mysql_handle_preparer()
243 S->max_length = pdo_attr_lval(driver_options, PDO_ATTR_MAX_COLUMN_LEN, 0 TSRMLS_CC); in mysql_handle_preparer()