summaryrefslogtreecommitdiff
path: root/sql/field.cc
diff options
context:
space:
mode:
authorMats Kindahl <mats@sun.com>2009-12-16 09:34:10 +0100
committerMats Kindahl <mats@sun.com>2009-12-16 09:34:10 +0100
commit541b4115a50d4d98658e5ca957ba52a4facf6190 (patch)
tree0fc2f1beee7bce0d568452f8fd9bdf83a5bd627a /sql/field.cc
parent24823d3aab711c1a925dd27747ac79339ea22b1d (diff)
parentd107a4ce48207fbf1110061cd7c2ee4d7d90cbe6 (diff)
downloadmariadb-git-541b4115a50d4d98658e5ca957ba52a4facf6190.tar.gz
Merging with mysql-5.1-rep+2
Diffstat (limited to 'sql/field.cc')
-rw-r--r--sql/field.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/sql/field.cc b/sql/field.cc
index 8e0113283a3..3fa47e81c41 100644
--- a/sql/field.cc
+++ b/sql/field.cc
@@ -999,18 +999,19 @@ test_if_important_data(CHARSET_INFO *cs, const char *str, const char *strend)
/**
- Template function to compare two objects.
+ Function to compare two unsigned integers for their relative order.
+ Used below. In an anonymous namespace to not clash with definitions
+ in other files.
*/
namespace {
- template <class A_type, class B_type>
- int compare(A_type a, B_type b)
+ int compare(unsigned int a, unsigned int b)
{
if (a < b)
return -1;
if (b < a)
return 1;
return 0;
- }
+}
}
/**