Lines Matching refs:stmt
98 static int pdo_dblib_stmt_cursor_closer(pdo_stmt_t *stmt TSRMLS_DC) in pdo_dblib_stmt_cursor_closer()
100 pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data; in pdo_dblib_stmt_cursor_closer()
106 efree(stmt->columns); in pdo_dblib_stmt_cursor_closer()
107 stmt->columns = NULL; in pdo_dblib_stmt_cursor_closer()
112 static int pdo_dblib_stmt_dtor(pdo_stmt_t *stmt TSRMLS_DC) in pdo_dblib_stmt_dtor()
114 pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data; in pdo_dblib_stmt_dtor()
116 efree(stmt->columns); in pdo_dblib_stmt_dtor()
117 stmt->columns = NULL; in pdo_dblib_stmt_dtor()
124 static int pdo_dblib_stmt_next_rowset(pdo_stmt_t *stmt TSRMLS_DC) in pdo_dblib_stmt_next_rowset()
126 pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data; in pdo_dblib_stmt_next_rowset()
133 …pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "PDO_DBLIB: dbresults() returned FAIL" TSRMLS_CC); in pdo_dblib_stmt_next_rowset()
141 stmt->row_count = DBCOUNT(H->link); in pdo_dblib_stmt_next_rowset()
142 stmt->column_count = dbnumcols(H->link); in pdo_dblib_stmt_next_rowset()
147 static int pdo_dblib_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC) in pdo_dblib_stmt_execute()
149 pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data; in pdo_dblib_stmt_execute()
155 pdo_dblib_stmt_cursor_closer(stmt TSRMLS_CC); in pdo_dblib_stmt_execute()
157 if (FAIL == dbcmd(H->link, stmt->active_query_string)) { in pdo_dblib_stmt_execute()
165 ret = pdo_dblib_stmt_next_rowset(stmt TSRMLS_CC); in pdo_dblib_stmt_execute()
167 stmt->row_count = DBCOUNT(H->link); in pdo_dblib_stmt_execute()
168 stmt->column_count = dbnumcols(H->link); in pdo_dblib_stmt_execute()
173 static int pdo_dblib_stmt_fetch(pdo_stmt_t *stmt, in pdo_dblib_stmt_fetch() argument
179 pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data; in pdo_dblib_stmt_fetch()
185 pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "PDO_DBLIB: dbnextrow() returned FAIL" TSRMLS_CC); in pdo_dblib_stmt_fetch()
196 static int pdo_dblib_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC) in pdo_dblib_stmt_describe() argument
198 pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data; in pdo_dblib_stmt_describe()
201 if(colno >= stmt->column_count || colno < 0) { in pdo_dblib_stmt_describe()
205 struct pdo_column_data *col = &stmt->columns[colno]; in pdo_dblib_stmt_describe()
215 static int pdo_dblib_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, in pdo_dblib_stmt_get_col() argument
219 pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data; in pdo_dblib_stmt_get_col()
284 static int pdo_dblib_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *param, in pdo_dblib_stmt_param_hook() argument
290 static int pdo_dblib_stmt_get_column_meta(pdo_stmt_t *stmt, long colno, zval *return_value TSRMLS_D… in pdo_dblib_stmt_get_column_meta() argument
292 pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data; in pdo_dblib_stmt_get_column_meta()
296 if(colno >= stmt->column_count || colno < 0) { in pdo_dblib_stmt_get_column_meta()