~mdcallag/+junk/5.1-map

« back to all changes in this revision

Viewing changes to libmysqld/lib_sql.cc

  • Committer: msvensson at pilot
  • Date: 2007-04-24 09:11:45 UTC
  • mfrom: (2469.1.106)
  • Revision ID: sp1r-msvensson@pilot.blaudden-20070424091145-10463
Merge pilot.blaudden:/home/msvensson/mysql/my51-m-mysql_upgrade
into  pilot.blaudden:/home/msvensson/mysql/mysql-5.1-maint

Show diffs side-by-side

added added

removed removed

Lines of Context:
822
822
  remove last row of current recordset
823
823
 
824
824
  SYNOPSIS
825
 
  Protocol_simple::remove_last_row()
 
825
  Protocol_text::remove_last_row()
826
826
 
827
827
  NOTES
828
828
    does the loop from the beginning of the current recordset to
830
830
    Not supposed to be frequently called.
831
831
*/
832
832
 
833
 
void Protocol_simple::remove_last_row()
 
833
void Protocol_text::remove_last_row()
834
834
{
835
835
  MYSQL_DATA *data= thd->cur_data;
836
836
  MYSQL_ROWS **last_row_hook= &data->data;
837
837
  uint count= data->rows;
838
 
  DBUG_ENTER("Protocol_simple::remove_last_row");
 
838
  DBUG_ENTER("Protocol_text::remove_last_row");
839
839
  while (--count)
840
840
    last_row_hook= &(*last_row_hook)->next;
841
841
 
964
964
  return false;
965
965
}
966
966
 
967
 
bool Protocol_prep::write()
 
967
bool Protocol_binary::write()
968
968
{
969
969
  MYSQL_ROWS *cur;
970
970
  MYSQL_DATA *data= thd->cur_data;
1031
1031
}
1032
1032
 
1033
1033
 
1034
 
void Protocol_simple::prepare_for_resend()
 
1034
void Protocol_text::prepare_for_resend()
1035
1035
{
1036
1036
  MYSQL_ROWS *cur;
1037
1037
  MYSQL_DATA *data= thd->cur_data;
1056
1056
  DBUG_VOID_RETURN;
1057
1057
}
1058
1058
 
1059
 
bool Protocol_simple::store_null()
 
1059
bool Protocol_text::store_null()
1060
1060
{
1061
1061
  *(next_field++)= NULL;
1062
1062
  ++next_mysql_field;