~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/mi_checksum.cc

  • Committer: Monty Taylor
  • Date: 2010-09-26 21:24:15 UTC
  • mto: (1796.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1797.
  • Revision ID: mordred@inaugust.com-20100926212415-5fn3p3q75pgiei7r
Moved protocol doc into the docs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
   You should have received a copy of the GNU General Public License
13
13
   along with this program; if not, write to the Free Software
14
 
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
 
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
16
/* Calculate a checksum for a row */
17
17
 
40
40
    }
41
41
    case FIELD_VARCHAR:
42
42
    {
43
 
      uint32_t pack_length= ha_varchar_packlength(rec->length-1);
 
43
      uint32_t pack_length= HA_VARCHAR_PACKLENGTH(rec->length-1);
44
44
      if (pack_length == 1)
45
45
        length= (ulong) *(unsigned char*) buf;
46
46
      else