MCPcopy Create free account
hub / github.com/MariaDB/server / open

Method open

sql/sql_select.cc:23149–23168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23147
23148
23149bool Virtual_tmp_table::open()
23150{
23151 // Make sure that we added all the fields we planned to:
23152 DBUG_ASSERT(s->fields == m_alloced_field_count);
23153 field[s->fields]= NULL; // mark the end of the list
23154 s->blob_field[s->blob_fields]= 0; // mark the end of the list
23155
23156 uint null_pack_length= (s->null_fields + 7) / 8; // NULL-bit array length
23157 s->reclength+= null_pack_length;
23158 s->rec_buff_length= ALIGN_SIZE(s->reclength + 1);
23159 if (!(record[0]= in_use->alloc<uchar>(s->rec_buff_length)))
23160 return true;
23161 if (null_pack_length)
23162 {
23163 null_flags= (uchar*) record[0];
23164 s->null_bytes= s->null_bytes_for_compare= null_pack_length;
23165 }
23166 setup_field_pointers();
23167 return false;
23168}
23169
23170
23171bool Virtual_tmp_table::sp_find_field_by_name(uint *idx,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected