diff options
author | Takahashi Mamoru <pitman0016@gmail.com> | 2014-10-20 14:00:45 +0900 |
---|---|---|
committer | Takahashi Mamoru <pitman0016@gmail.com> | 2014-10-20 14:00:45 +0900 |
commit | 5e6b11da08171f71bbdb59f2dec0b275ae1ed76b (patch) | |
tree | ab250cba6dd54a5a3f0e1b5d0f34c4bcc0afbbed | |
parent | 97dae9844f2c235f6eb2c0fafdc468d817ac1af5 (diff) |
Fix the error occurred when a column value includes unicode strings.
Its error message is "query error: user-defined function raised exception".
-rwxr-xr-x | bin/q | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -166,7 +166,7 @@ parser.add_option_group(query_option_group) def regexp(regular_expression, data): if data is not None: - if type(data) is not str: + if not isinstance(data, str) and not isinstance(data, unicode): data = str(data) return re.search(regular_expression, data) is not None else: |