Lines Matching refs:stmt
41 void pdo_raise_impl_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, const char *sqlstate, const char *supp … in pdo_raise_impl_error() argument
56 if (stmt) { in pdo_raise_impl_error()
57 pdo_err = &stmt->error_code; in pdo_raise_impl_error()
104 void pdo_handle_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt TSRMLS_DC) /* {{{ */ in pdo_handle_error()
117 if (stmt) { in pdo_handle_error()
118 pdo_err = &stmt->error_code; in pdo_handle_error()
133 if (dbh->methods->fetch_err(dbh, stmt, info TSRMLS_CC)) { in pdo_handle_error()
449 static void pdo_stmt_construct(pdo_stmt_t *stmt, zval *object, zend_class_entry *dbstmt_ce, zval *c… in pdo_stmt_construct() argument
455 ZVAL_STRINGL(query_string, stmt->query_string, stmt->query_stringlen, 1); in pdo_stmt_construct()
514 pdo_stmt_t *stmt; in PHP_METHOD() local
578 stmt = (pdo_stmt_t*)zend_object_store_get_object(return_value TSRMLS_CC); in PHP_METHOD()
581 stmt->query_string = estrndup(statement, statement_len); in PHP_METHOD()
582 stmt->query_stringlen = statement_len; in PHP_METHOD()
583 stmt->default_fetch_type = dbh->default_fetch_type; in PHP_METHOD()
584 stmt->dbh = dbh; in PHP_METHOD()
588 stmt->database_object_handle = *getThis(); in PHP_METHOD()
590 ZVAL_NULL(&stmt->lazy_object_ref); in PHP_METHOD()
592 if (dbh->methods->preparer(dbh, statement, statement_len, stmt, options TSRMLS_CC)) { in PHP_METHOD()
593 pdo_stmt_construct(stmt, return_value, dbstmt_ce, ctor_args TSRMLS_CC); in PHP_METHOD()
1089 pdo_stmt_t *stmt; in PHP_METHOD() local
1111 stmt = (pdo_stmt_t*)zend_object_store_get_object(return_value TSRMLS_CC); in PHP_METHOD()
1114 stmt->query_string = estrndup(statement, statement_len); in PHP_METHOD()
1115 stmt->query_stringlen = statement_len; in PHP_METHOD()
1117 stmt->default_fetch_type = dbh->default_fetch_type; in PHP_METHOD()
1118 stmt->active_query_string = stmt->query_string; in PHP_METHOD()
1119 stmt->active_query_stringlen = statement_len; in PHP_METHOD()
1120 stmt->dbh = dbh; in PHP_METHOD()
1124 stmt->database_object_handle = *getThis(); in PHP_METHOD()
1126 ZVAL_NULL(&stmt->lazy_object_ref); in PHP_METHOD()
1128 if (dbh->methods->preparer(dbh, statement, statement_len, stmt, NULL TSRMLS_CC)) { in PHP_METHOD()
1130 …M_ARGS() == 1 || SUCCESS == pdo_stmt_setup_fetch_mode(INTERNAL_FUNCTION_PARAM_PASSTHRU, stmt, 1)) { in PHP_METHOD()
1134 if (stmt->methods->executer(stmt TSRMLS_CC)) { in PHP_METHOD()
1136 if (!stmt->executed) { in PHP_METHOD()
1137 if (stmt->dbh->alloc_own_columns) { in PHP_METHOD()
1138 ret = pdo_stmt_describe_columns(stmt TSRMLS_CC); in PHP_METHOD()
1140 stmt->executed = 1; in PHP_METHOD()
1143 pdo_stmt_construct(stmt, return_value, dbh->def_stmt_ce, dbh->def_stmt_ctor_args TSRMLS_CC); in PHP_METHOD()
1149 dbh->query_stmt = stmt; in PHP_METHOD()