~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_lex.cc

  • Committer: Brian Aker
  • Date: 2008-10-20 01:46:44 UTC
  • mto: (492.3.21 drizzle-clean-code)
  • mto: This revision was merged to the branch mainline in revision 530.
  • Revision ID: brian@tangent.org-20081020014644-oqwhaf1lhch3yc4c
SQL_BIG_TABLES has been removed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2351
2351
 
2352
2352
  val= sl->select_limit ? sl->select_limit->val_uint() : HA_POS_ERROR;
2353
2353
  select_limit_val= (ha_rows)val;
2354
 
#ifndef BIG_TABLES
2355
2354
  /* 
2356
2355
    Check for overflow : ha_rows can be smaller then uint64_t if
2357
2356
    BIG_TABLES is off.
2358
2357
    */
2359
2358
  if (val != (uint64_t)select_limit_val)
2360
2359
    select_limit_val= HA_POS_ERROR;
2361
 
#endif
2362
2360
  offset_limit_cnt= (ha_rows)(sl->offset_limit ? sl->offset_limit->val_uint() :
2363
2361
                                                 0UL);
2364
2362
  select_limit_cnt= select_limit_val + offset_limit_cnt;