summaryrefslogtreecommitdiff
path: root/storage/xtradb/include/eval0eval.ic
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2013-12-22 17:06:50 +0100
committerSergei Golubchik <sergii@pisem.net>2013-12-22 17:06:50 +0100
commitffa8c4cfcc41d4f160e3bdfca5cfd4b01a7d6e63 (patch)
tree728585c36f22a5db3cea796430883d0ebc5c05eb /storage/xtradb/include/eval0eval.ic
parente27c34f9e4ca15c797fcd3191ee5679c2f237a09 (diff)
parent52c26f7a1f675185d2ef1a28aca7f9bcc67c6414 (diff)
downloadmariadb-git-ffa8c4cfcc41d4f160e3bdfca5cfd4b01a7d6e63.tar.gz
Percona-Server-5.6.14-rel62.0 merge
support ha_innodb.so as a dynamic plugin. * remove obsolete *,innodb_plugin.rdiff files * s/--plugin-load=/--plugin-load-add=/ * MYSQL_PLUGIN_IMPORT glob_hostname[] * use my_error instead of push_warning_printf(ER_DEFAULT) * don't use tdc_size and tc_size in a module update test cases (XtraDB is 5.6.14, InnoDB is 5.6.10) * copy new tests over * disable some tests for (old) InnoDB * delete XtraDB tests that no longer apply small compatibility changes: * s/HTON_EXTENDED_KEYS/HTON_SUPPORTS_EXTENDED_KEYS/ * revert unnecessary InnoDB changes to make it a bit closer to the upstream fix XtraDB to compile on Windows (both as a static and a dynamic plugin) disable XtraDB on Windows (deadlocks) and where no atomic ops are available (e.g. CentOS 5) storage/innobase/handler/ha_innodb.cc: revert few unnecessary changes to make it a bit closer to the original InnoDB storage/innobase/include/univ.i: correct the version to match what it was merged from
Diffstat (limited to 'storage/xtradb/include/eval0eval.ic')
-rw-r--r--storage/xtradb/include/eval0eval.ic30
1 files changed, 17 insertions, 13 deletions
diff --git a/storage/xtradb/include/eval0eval.ic b/storage/xtradb/include/eval0eval.ic
index d0ca4c9bea5..e4b1dd08017 100644
--- a/storage/xtradb/include/eval0eval.ic
+++ b/storage/xtradb/include/eval0eval.ic
@@ -1,6 +1,6 @@
/*****************************************************************************
-Copyright (c) 1997, 2009, Innobase Oy. All Rights Reserved.
+Copyright (c) 1997, 2011, Oracle and/or its affiliates. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
@@ -11,8 +11,8 @@ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
-this program; if not, write to the Free Software Foundation, Inc.,
-51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+this program; if not, write to the Free Software Foundation, Inc.,
+51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA
*****************************************************************************/
@@ -70,7 +70,7 @@ eval_node_ensure_val_buf(
dfield = que_node_get_val(node);
dfield_set_len(dfield, size);
- data = dfield_get_data(dfield);
+ data = static_cast<byte*>(dfield_get_data(dfield));
if (!data || que_node_get_val_buf_size(node) < size) {
@@ -110,12 +110,12 @@ eval_exp(
{
if (que_node_get_type(exp_node) == QUE_NODE_SYMBOL) {
- eval_sym((sym_node_t*)exp_node);
+ eval_sym((sym_node_t*) exp_node);
return;
}
- eval_func(exp_node);
+ eval_func(static_cast<func_node_t*>(exp_node));
}
/*****************************************************************//**
@@ -132,7 +132,7 @@ eval_node_set_int_val(
dfield = que_node_get_val(node);
- data = dfield_get_data(dfield);
+ data = static_cast<byte*>(dfield_get_data(dfield));
if (data == NULL) {
data = eval_node_alloc_val_buf(node, 4);
@@ -140,7 +140,7 @@ eval_node_set_int_val(
ut_ad(dfield_get_len(dfield) == 4);
- mach_write_to_4(data, (ulint)val);
+ mach_write_to_4(data, (ulint) val);
}
/*****************************************************************//**
@@ -152,13 +152,15 @@ eval_node_get_int_val(
/*==================*/
que_node_t* node) /*!< in: expression node */
{
+ const byte* ptr;
dfield_t* dfield;
dfield = que_node_get_val(node);
+ ptr = static_cast<byte*>(dfield_get_data(dfield));
ut_ad(dfield_get_len(dfield) == 4);
- return((int)mach_read_from_4(dfield_get_data(dfield)));
+ return((int) mach_read_from_4(ptr));
}
/*****************************************************************//**
@@ -175,7 +177,7 @@ eval_node_get_ibool_val(
dfield = que_node_get_val(node);
- data = dfield_get_data(dfield);
+ data = static_cast<byte*>(dfield_get_data(dfield));
ut_ad(data != NULL);
@@ -196,7 +198,7 @@ eval_node_set_ibool_val(
dfield = que_node_get_val(func_node);
- data = dfield_get_data(dfield);
+ data = static_cast<byte*>(dfield_get_data(dfield));
if (data == NULL) {
/* Allocate 1 byte to hold the value */
@@ -246,6 +248,8 @@ eval_node_copy_val(
dfield2 = que_node_get_val(node2);
- eval_node_copy_and_alloc_val(node1, dfield_get_data(dfield2),
- dfield_get_len(dfield2));
+ eval_node_copy_and_alloc_val(
+ node1,
+ static_cast<byte*>(dfield_get_data(dfield2)),
+ dfield_get_len(dfield2));
}