~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/str/repeat.cc

  • Committer: Monty Taylor
  • Date: 2010-03-25 22:03:21 UTC
  • mto: This revision was merged to the branch mainline in revision 1408.
  • Revision ID: mordred@inaugust.com-20100325220321-bf5vs8tryb4a8ssh
Updated the search for libmemcached.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2008 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
84
84
    return res;
85
85
  length=res->length();
86
86
  // Safe length check
87
 
  if (length > session.variables.max_allowed_packet / (uint) count)
 
87
  if (length > current_session->variables.max_allowed_packet / (uint) count)
88
88
  {
89
 
    push_warning_printf(&session, DRIZZLE_ERROR::WARN_LEVEL_WARN,
 
89
    push_warning_printf(current_session, DRIZZLE_ERROR::WARN_LEVEL_WARN,
90
90
                        ER_WARN_ALLOWED_PACKET_OVERFLOWED,
91
91
                        ER(ER_WARN_ALLOWED_PACKET_OVERFLOWED),
92
 
                        func_name(), session.variables.max_allowed_packet);
 
92
                        func_name(), current_session->variables.max_allowed_packet);
93
93
    goto err;
94
94
  }
95
95
  tot_length= length*(uint) count;