Skip to content

Commit c2ee5ee

Browse files
committed
fix: Error: ER_TRUNCATED_WRONG_VALUE_FOR_FIELD for string types
1 parent ba409ac commit c2ee5ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cubejs-mysql-driver/driver/MySqlDriver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class MySqlDriver extends BaseDriver {
129129
}
130130

131131
toColumnValue(value, genericType) {
132-
if (genericType === 'text') {
132+
if (genericType === 'text' || genericType === 'string') {
133133
return value && value.replace(/[\u0800-\uFFFF]/g, '');
134134
}
135135
if (genericType === 'timestamp' && typeof value === 'string') {

0 commit comments

Comments
 (0)