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

Method get_offset

sql/sql_lex.cc:3617–3631  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3615
3616
3617ha_rows st_select_lex::get_offset()
3618{
3619 ha_rows val= 0;
3620
3621 Item *offset_limit= limit_params.offset_limit;
3622 if (offset_limit)
3623 {
3624 // see comment for st_select_lex::get_limit()
3625 bool err= offset_limit->fix_fields_if_needed(master_unit()->thd, NULL);
3626 DBUG_ASSERT(!err);
3627 val= err ? HA_POS_ERROR : (ha_rows)offset_limit->val_uint();
3628 }
3629
3630 return val;
3631}
3632
3633
3634ha_rows st_select_lex::get_limit()

Callers 2

set_limitMethod · 0.45

Calls 2

fix_fields_if_neededMethod · 0.80
val_uintMethod · 0.45

Tested by

no test coverage detected