We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68ec74c commit c701599Copy full SHA for c701599
packages/cubejs-mssql-driver/src/MSSqlDriver.ts
@@ -21,7 +21,22 @@ import {
21
import { QueryStream } from './QueryStream';
22
23
// ********* Value converters ***************** //
24
-// sql.valueHandler.set(sql.TYPES.Int, (value) => value + 1);
+const numericTypes = [
25
+ sql.TYPES.Int,
26
+ sql.TYPES.BigInt,
27
+ sql.TYPES.SmallInt,
28
+ sql.TYPES.TinyInt,
29
+ sql.TYPES.Decimal,
30
+ sql.TYPES.Numeric,
31
+ sql.TYPES.Float,
32
+ sql.TYPES.Real,
33
+ sql.TYPES.Money,
34
+ sql.TYPES.SmallMoney
35
+];
36
+
37
+for (const type of numericTypes) {
38
+ sql.valueHandler.set(type, (value) => value != null ? String(value) : value);
39
+}
40
41
export type MSSqlDriverConfiguration = Omit<MsSQLConfig, 'server'> & {
42
readOnly?: boolean;
0 commit comments