Lines Matching refs:row

83     MYSQL_ROW row;
96 /** The row this bucket refers to */
97 const apr_dbd_row_t *row;
109 const apr_dbd_row_t *row, int col,
112 static apr_bucket *apr_bucket_lob_create(const apr_dbd_row_t *row, int col,
142 const apr_dbd_row_t *row = a->row;
143 apr_dbd_results_t *res = row->res;
195 const apr_dbd_row_t *row, int col,
202 f->row = row;
212 static apr_bucket *apr_bucket_lob_create(const apr_dbd_row_t *row, int col,
222 return apr_bucket_lob_make(b, row, col, offset, len, p);
278 apr_dbd_row_t **row, int rownum)
289 return -1; /* invalid row */
311 return -1; /* invalid row */
320 if (!*row) {
321 *row = apr_palloc(pool, sizeof(apr_dbd_row_t));
323 (*row)->row = r;
324 (*row)->res = res;
325 (*row)->len = mysql_fetch_lengths(res->res);
334 static int dbd_mysql_get_entry(const apr_dbd_row_t *row, int n,
338 if (dbd_mysql_num_cols(row->res) <= n) {
341 if (row->res->statement) {
342 bind = &row->res->bind[n];
343 if (mysql_stmt_fetch_column(row->res->statement, bind, n, 0) != 0) {
358 val->value.stringval = row->row[n];
364 static const char *dbd_mysql_get_entry(const apr_dbd_row_t *row, int n)
367 if (dbd_mysql_num_cols(row->res) <= n) {
370 if (row->res->statement) {
371 bind = &row->res->bind[n];
372 if (mysql_stmt_fetch_column(row->res->statement, bind, n, 0) != 0) {
383 return row->row[n];
389 static apr_status_t dbd_mysql_datum_get(const apr_dbd_row_t *row, int n,
392 if (row->res->statement) {
393 MYSQL_BIND *bind = &row->res->bind[n];
396 if (mysql_stmt_fetch_column(row->res->statement, bind, n, 0) != 0) {
457 e = apr_bucket_lob_create(row, n, 0, len,
458 row->res->pool, b->bucket_alloc);
470 if (row->row[n] == NULL) {
476 *(char*)data = atoi(row->row[n]);
479 *(unsigned char*)data = atoi(row->row[n]);
482 *(short*)data = atoi(row->row[n]);
485 *(unsigned short*)data = atoi(row->row[n]);
488 *(int*)data = atoi(row->row[n]);
491 *(unsigned int*)data = atoi(row->row[n]);
494 *(long*)data = atol(row->row[n]);
497 *(unsigned long*)data = atol(row->row[n]);
500 *(apr_int64_t*)data = apr_atoi64(row->row[n]);
503 *(apr_uint64_t*)data = apr_atoi64(row->row[n]);
506 *(float*)data = (float) atof(row->row[n]);
509 *(double*)data = atof(row->row[n]);
518 *(char**)data = row->row[n];
526 e = apr_bucket_pool_create(row->row[n], row->len[n],
527 row->res->pool, b->bucket_alloc);