summaryrefslogtreecommitdiff
path: root/client/sql_string.cc
diff options
context:
space:
mode:
authorgkodinov/kgeorge@magare.gmz <>2008-03-05 16:27:35 +0200
committergkodinov/kgeorge@magare.gmz <>2008-03-05 16:27:35 +0200
commite8fd6cd4a11bf33da8b0bf534be1a0ed5195f1f9 (patch)
tree0405bb345c2d1579ad05222fc799fb42e090ca8d /client/sql_string.cc
parent48f9206576526830eb49d45fb904334fb6775117 (diff)
downloadmariadb-git-e8fd6cd4a11bf33da8b0bf534be1a0ed5195f1f9.tar.gz
Bug #33544: UDF_INIT member decimals initialized wrong with
STRING_RESULT argument There is a "magic" number for precision : NOT_FIXED_DEC. This means that the precision is not a fixed number. But this constant was re-defined in several files and was not available to the UDF developers. Moved the NOT_FIXED_DEC definition to the correct header and removed the redundant definitions.
Diffstat (limited to 'client/sql_string.cc')
-rw-r--r--client/sql_string.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/client/sql_string.cc b/client/sql_string.cc
index c41463999aa..9ccccca6f73 100644
--- a/client/sql_string.cc
+++ b/client/sql_string.cc
@@ -23,6 +23,7 @@
#include <my_sys.h>
#include <m_string.h>
#include <m_ctype.h>
+#include <mysql_com.h>
#ifdef HAVE_FCONVERT
#include <floatingpoint.h>
#endif