summaryrefslogtreecommitdiff
path: root/sql/gstream.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/gstream.cc')
-rw-r--r--sql/gstream.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/gstream.cc b/sql/gstream.cc
index 4678e85019e..b743140ba59 100644
--- a/sql/gstream.cc
+++ b/sql/gstream.cc
@@ -1,4 +1,5 @@
/* Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
+ Copyright (c) 2009, 2020, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -107,8 +108,7 @@ bool Gis_read_stream::get_next_number(double *d)
return 1;
}
- *d = my_strntod(m_charset, (char *)m_cur,
- (uint) (m_limit-m_cur), &endptr, &err);
+ *d = m_charset->strntod((char *)m_cur, (uint) (m_limit-m_cur), &endptr, &err);
if (err)
return 1;
if (endptr)