~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/row/row0row.c

  • Committer: Brian Aker
  • Date: 2010-11-22 00:16:44 UTC
  • mto: (1945.2.1 quick)
  • mto: This revision was merged to the branch mainline in revision 1947.
  • Revision ID: brian@tangent.org-20101122001644-pi6jv0d65e82xn38
Merge in lock refactor, this just encapsulates.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (c) 1996, 2009, Innobase Oy. All Rights Reserved.
 
3
Copyright (c) 1996, 2010, Innobase Oy. All Rights Reserved.
4
4
 
5
5
This program is free software; you can redistribute it and/or modify it under
6
6
the terms of the GNU General Public License as published by the Free Software
11
11
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
12
 
13
13
You should have received a copy of the GNU General Public License along with
14
 
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
15
 
Place, Suite 330, Boston, MA 02111-1307 USA
 
14
this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
 
15
St, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
*****************************************************************************/
18
18
 
918
918
 
919
919
                ret = row_raw_format_int(data, data_len, prtype,
920
920
                                         buf, buf_size, &format_in_hex);
 
921
                if (format_in_hex) {
 
922
 
 
923
                        goto format_in_hex;
 
924
                }
921
925
                break;
922
926
        case DATA_CHAR:
923
927
        case DATA_VARCHAR:
926
930
 
927
931
                ret = row_raw_format_str(data, data_len, prtype,
928
932
                                         buf, buf_size, &format_in_hex);
 
933
                if (format_in_hex) {
 
934
 
 
935
                        goto format_in_hex;
 
936
                }
 
937
 
929
938
                break;
930
939
        /* XXX support more data types */
931
940
        default:
932
 
 
933
 
                format_in_hex = TRUE;
934
 
        }
935
 
 
936
 
        if (format_in_hex) {
 
941
        format_in_hex:
937
942
 
938
943
                if (UNIV_LIKELY(buf_size > 2)) {
939
944