Branch: Tag:

2016-03-26

2016-03-26 21:36:58 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Mysql: Changed calling convention for make_mysql_result().

As make_mysql_result() is always called in a context where
Pike_fp->current_object is the mysql connection object,
there's no need to pass the object explicitly.

1151:    push_int(0);    } else {    /* Return the result-object */ -  push_object(make_mysql_result(Pike_fp->current_object, result, flags)); +  push_object(make_mysql_result(result, flags));    }   }   
1504:    pop_n_elems(args);       /* Return the result-object */ -  push_object(make_mysql_result(Pike_fp->current_object, result, 0)); +  push_object(make_mysql_result(result, 0));   }      /*! @decl object(Mysql.mysql_result) list_tables()
1555:    pop_n_elems(args);       /* Return the result-object */ -  push_object(make_mysql_result(Pike_fp->current_object, result, 0)); +  push_object(make_mysql_result(result, 0));   }      /*! @decl array(int|mapping(string:mixed)) list_fields(string table)
1723:    }       /* Return the result-object */ -  push_object(make_mysql_result(Pike_fp->current_object, result, 0)); +  push_object(make_mysql_result(result, 0));   }      /*! @decl int binary_data()