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

Function fill_rows

libmysqld/examples/builder-sample/emb_samples.cpp:40–52  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

38TForm1 *Form1;
39//---------------------------------------------------------------------------
40deque<string> fill_rows(MYSQL_RES *res)
41{
42 MYSQL_ROW row;
43 deque<string> rows;
44
45 while ((row=mysql_fetch_row(res)) != 0)
46 {
47 mysql_field_seek(res,0);
48 for (unsigned int i=0 ; i < mysql_num_fields(res); i++)
49 rows.push_back(row[i]);
50 }
51 return rows;
52}
53//---------------------------------------------------------------------------
54__fastcall TForm1::TForm1(TComponent* Owner)
55 : TForm(Owner)

Callers 2

get_tablesMethod · 0.85
get_dbsMethod · 0.85

Calls 4

mysql_fetch_rowFunction · 0.85
mysql_field_seekFunction · 0.85
mysql_num_fieldsFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected