mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #8847 from mvdbeek/fix_trimmed_string_implementation
[19.09] Cast to string in TrimmedString
This commit is contained in:
@@ -372,5 +372,5 @@ class TrimmedString(TypeDecorator):
|
||||
def process_bind_param(self, value, dialect):
|
||||
"""Automatically truncate string values"""
|
||||
if self.impl.length and value is not None:
|
||||
value = value[0:self.impl.length]
|
||||
value = unicodify(value)[0:self.impl.length]
|
||||
return value
|
||||
|
||||
Reference in New Issue
Block a user