summaryrefslogtreecommitdiff
path: root/client/sql_string.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/sql_string.cc')
-rw-r--r--client/sql_string.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/sql_string.cc b/client/sql_string.cc
index 690997152f1..1f007fd3a17 100644
--- a/client/sql_string.cc
+++ b/client/sql_string.cc
@@ -103,7 +103,7 @@ bool String::set(longlong num, CHARSET_INFO *cs)
}
else
{
- str_length=cs->cset->snprintf(cs,Ptr,l,"%d",num);
+ str_length=cs->cset->snprintf(cs,Ptr,l,"%ld", (long) num);
}
str_charset=cs;
return FALSE;
@@ -121,7 +121,7 @@ bool String::set(ulonglong num, CHARSET_INFO *cs)
}
else
{
- str_length=cs->cset->snprintf(cs,Ptr,l,"%d",num);
+ str_length=cs->cset->snprintf(cs,Ptr,l,"%ld", (long) num);
}
str_charset=cs;
return FALSE;