~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle-1.0/libdrizzle/row.c

  • Committer: Andrew Hutchings
  • Date: 2011-09-07 11:17:03 UTC
  • mto: This revision was merged to the branch mainline in revision 2415.
  • Revision ID: andrew@linuxjedi.co.uk-20110907111703-17yajajlqndo6f3o
Add function drizzle_column_skip_all
Add error when rows retrieval is attemped before all columns have been retrieved

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
 
48
48
uint64_t drizzle_row_read(drizzle_result_st *result, drizzle_return_t *ret_ptr)
49
49
{
 
50
  if ((result->column_current != result->column_count) && (!(result->options & DRIZZLE_RESULT_BUFFER_COLUMN)))
 
51
  {
 
52
    drizzle_set_error(result->con->drizzle, "drizzle_row_read", "cannot retrieve rows until all columns are retrieved");
 
53
    *ret_ptr= DRIZZLE_RETURN_NOT_READY;
 
54
    return 0;
 
55
  }
 
56
 
50
57
  if (drizzle_state_none(result->con))
51
58
  {
52
59
    drizzle_state_push(result->con, drizzle_state_row_read);