~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/locate.cc

  • Committer: Brian Aker
  • Date: 2010-09-09 21:45:53 UTC
  • mto: (1756.1.2 build) (1768.2.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 1757.
  • Revision ID: brian@tangent.org-20100909214553-e687rmf5zk9478on
Force unique to just use memory and let the OS handle paging.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
  {
51
51
    start0= start= args[2]->val_int() - 1;
52
52
 
53
 
    if ((start < 0) || (start > static_cast<int64_t>(a->length())))
 
53
    if ((start < 0) || (start > a->length()))
54
54
      return 0;
55
55
 
56
56
    /* start is now sufficiently valid to pass to charpos function */