summaryrefslogtreecommitdiff
path: root/sql/rpl_utility.cc
diff options
context:
space:
mode:
authorLuis Soares <luis.soares@sun.com>2009-12-22 11:51:46 +0000
committerLuis Soares <luis.soares@sun.com>2009-12-22 11:51:46 +0000
commiteb23dff5279a478fccf58be6e5e3d782e5a8c8a3 (patch)
treebd1e84321f1908b0494141cf97f33dd76953baa3 /sql/rpl_utility.cc
parent93726f51c174410953d7b2c733c60fd006e4cabe (diff)
downloadmariadb-git-eb23dff5279a478fccf58be6e5e3d782e5a8c8a3.tar.gz
PB2 was showing some valgrind warnings after WL#5151 was pushed.
This patch fixes these warnings and some compile time warnings. On top of that, it also fixes rpl_err_ignoredtable test failure. This test was failing because the warning suppression text was not matching the latest text. We fix this by making them match.
Diffstat (limited to 'sql/rpl_utility.cc')
-rw-r--r--sql/rpl_utility.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/rpl_utility.cc b/sql/rpl_utility.cc
index 3a69c71b34c..e8e22216b38 100644
--- a/sql/rpl_utility.cc
+++ b/sql/rpl_utility.cc
@@ -582,7 +582,7 @@ can_convert_field_to(Field *field,
String field_type(field_type_buf, sizeof(field_type_buf), field->charset());
field->sql_type(field_type);
DBUG_PRINT("enter", ("field_type: %s, target_type: %d, source_type: %d, source_metadata: 0x%x",
- field_type.c_ptr(), field->real_type(), source_type, metadata));
+ field_type.c_ptr_safe(), field->real_type(), source_type, metadata));
#endif
/*
If the real type is the same, we need to check the metadata to
@@ -836,7 +836,7 @@ table_def::compatible_with(THD *thd, Relay_log_info *rli,
DBUG_PRINT("debug", ("Field %s - conversion required."
" Source type: '%s', Target type: '%s'",
tmp_table->field[col]->field_name,
- source_type.c_ptr(), target_type.c_ptr()));
+ source_type.c_ptr_safe(), target_type.c_ptr_safe()));
}
}
#endif