summaryrefslogtreecommitdiff
path: root/strings/llstr.c
diff options
context:
space:
mode:
authortnurnberg@mysql.com/white.intern.koehntopp.de <>2007-11-30 06:32:04 +0100
committertnurnberg@mysql.com/white.intern.koehntopp.de <>2007-11-30 06:32:04 +0100
commit31d4e58ad4c26fea1367ddb00ea0c26a17d3ddfc (patch)
treed9c1641496d14878b7f46428eea3f65b3a7aeb9b /strings/llstr.c
parent6b92ec4acbf78892bc4880913a762db0189ce20f (diff)
downloadmariadb-git-31d4e58ad4c26fea1367ddb00ea0c26a17d3ddfc.tar.gz
Bug#31177: Server variables can't be set to their current values
Default values of variables were not subject to upper/lower bounds and step, while setting variables was. Bounds and step are also applied to defaults now; defaults are corrected quietly, values given by the user are corrected, and a correction-warning is thrown as needed. Lastly, very large values could wrap around, starting from 0 again. They are bounded at the maximum value for the respective data-type now if no lower maximum is specified in the variable's definition.
Diffstat (limited to 'strings/llstr.c')
-rw-r--r--strings/llstr.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/strings/llstr.c b/strings/llstr.c
index 12aea63e014..643cf36a311 100644
--- a/strings/llstr.c
+++ b/strings/llstr.c
@@ -32,3 +32,9 @@ char *llstr(longlong value,char *buff)
longlong10_to_str(value,buff,-10);
return buff;
}
+
+char *ullstr(longlong value,char *buff)
+{
+ longlong10_to_str(value,buff,10);
+ return buff;
+}