# File lib/active_record/vendor/mysql.rb, line 284 def list_fields(table, field=nil) command COM_FIELD_LIST, "#{table}\0#{field}", true if @pre_411 f = read_rows 6 else f = read_rows 7 end fields = unpack_fields(f, @server_capabilities & CLIENT_LONG_FLAG != 0) res = Result::new self, fields, f.length res.eof = true res end