~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Mark Atwood
  • Date: 2011-09-14 22:55:58 UTC
  • mfrom: (2411.1.1 trunk)
  • Revision ID: me@mark.atwood.name-20110914225558-hvlb05wkq3kp89mr
mergeĀ lp:~linuxjedi/drizzle/trunk-bug-528410

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);