summaryrefslogtreecommitdiff
path: root/sql/spatial.cc
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2005-11-20 20:47:07 +0200
committerbell@sanja.is.com.ua <>2005-11-20 20:47:07 +0200
commit806f9e24ff1e9409d6b833c4ec1c07d3e45272c3 (patch)
tree178b80a009c667cc88b5c83cbe9636892d375946 /sql/spatial.cc
parentb13dd4ff72b55b0f015d181d99a48828017f2797 (diff)
downloadmariadb-git-806f9e24ff1e9409d6b833c4ec1c07d3e45272c3.tar.gz
Inefficient usage of String::append() fixed.
Bad examples of usage of a string with its length fixed. The incorrect length in the trigger file configuration descriptor fixed (BUG#14090). A hook for unknown keys added to the parser to support old .TRG files.
Diffstat (limited to 'sql/spatial.cc')
-rw-r--r--sql/spatial.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/spatial.cc b/sql/spatial.cc
index 5af1bec45ca..d33966df4e0 100644
--- a/sql/spatial.cc
+++ b/sql/spatial.cc
@@ -1791,7 +1791,7 @@ bool Gis_geometry_collection::get_data_as_wkt(String *txt,
geom->set_data_ptr(data, (uint) (m_data_end - data));
if (geom->as_wkt(txt, &data))
return 1;
- if (txt->append(",", 1, 512))
+ if (txt->append(STRING_WITH_LEN(","), 512))
return 1;
}
txt->length(txt->length() - 1);