pdo_stmt_t definition pdo_stmt_t

pdo_stmt_t definition

All fields should be treated as read-only unless explicitly stated otherwise.

struct _pdo_stmt_t{struct pdo_stmt_methods *methods;
*
void *driver_data;
**
unsigned executed:1;
***
unsigned supports_placeholders:2;
****
int column_count;
*****
struct pdo_column_data *columns;
******
pdo_dbh_t *dbh;  HashTable *bound_params;  HashTable *bound_param_map;  HashTable *bound_columns;  long row_count;  char *query_string; int query_stringlen;  char *active_query_string; int active_query_stringlen;  pdo_error_type error_code;  const char *named_rewrite_template;};

淘宝 adsense 商品推荐

官方正版 Google AdSense实战宝典 用谷歌广告联盟出海赚美元 第2版 祁劲松 网站运营书籍 seo搜索引擎优化 AdSense从入门到精通

价格:37元

*

The drivermustset this duringSKEL_handle_preparer().

**

This item is for use by the driver; the intended usage is to store a pointer(duringSKEL_handle_factory())to whatever instance data is required to maintain a connection to the database.

***

This is set by PDO after the statement has been executed for the first time. Your driver can inspect this value to determine if it can skip one-time actions as an optimization.

****

Discussed in more detail inSKEL_handle_preparer.

*****

Your driver is responsible for setting this field to the number of columns available in a result set. This is usually set duringSKEL_stmt_execute()but with some database implementations, the column count may not be available untilSKEL_stmt_fetch()has been called at least once. Drivers that implementSKEL_stmt_next_rowset()should update the column count when a new rowset is available.

******

PDO will allocate this field based on the value that you set for the column count. You are responsible for populating each column duringSKEL_stmt_describe(). You must set theprecision,maxlen,name,namelenandparam_typemembers for each column. Thenameis expected to be allocated usingemalloc(); PDO will callefree()at the appropriate time.

淘宝 云主机 商品推荐

远程电脑出租e5主机云服务器物理机游戏云主机工作室服务器租用

价格:12元