Skip to content

Commit c72ab07

Browse files
committed
fix: Respect MySQL TIMESTAMP strict mode on rollup downloads
1 parent dc553b9 commit c72ab07

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ class MySqlDriver extends BaseDriver {
132132
if (genericType === 'text') {
133133
return value && value.replace(/[\u0800-\uFFFF]/g, '');
134134
}
135+
if (genericType === 'timestamp' && typeof value === 'string') {
136+
return value && value.replace('Z', '');
137+
}
135138
return super.toColumnValue(value, genericType);
136139
}
137140

0 commit comments

Comments
 (0)