summaryrefslogtreecommitdiff
path: root/sql/sql_string.h
diff options
context:
space:
mode:
authorbar@mysql.com <>2005-03-15 17:15:47 +0400
committerbar@mysql.com <>2005-03-15 17:15:47 +0400
commitc6c887b99073d79d4da647bb2110d6ddb5af0d12 (patch)
tree7c2353f000f6d7f885619924e485c5b62d93c768 /sql/sql_string.h
parent50a6dc4e714da4a9a9d50ad007b779b119895755 (diff)
downloadmariadb-git-c6c887b99073d79d4da647bb2110d6ddb5af0d12.tar.gz
# Bug#8785 Problem with nested concats and
character set conversion of a string constant.
Diffstat (limited to 'sql/sql_string.h')
-rw-r--r--sql/sql_string.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_string.h b/sql/sql_string.h
index 3ad4689cf36..8dff5558120 100644
--- a/sql/sql_string.h
+++ b/sql/sql_string.h
@@ -177,6 +177,10 @@ public:
}
}
}
+ inline void shrink_to_length()
+ {
+ Alloced_length= str_length;
+ }
bool is_alloced() { return alloced; }
inline String& operator = (const String &s)
{