diff --git a/dist/db/core.js b/dist/db/core.js index 2a97367..d76b4c7 100644 --- a/dist/db/core.js +++ b/dist/db/core.js @@ -284,7 +284,7 @@ class SQLFragment { } else if (typeof expression.cast === 'string') { result.values.push(expression.value); - result.text += `CAST(${placeholder} AS "${expression.cast}")`; + result.text += `CAST(${placeholder} AS ${expression.cast})`; } else { result.values.push(expression.value); diff --git a/src/db/core.ts b/src/db/core.ts index 7790432..6ac56fe 100644 --- a/src/db/core.ts +++ b/src/db/core.ts @@ -347,7 +347,7 @@ export class SQLFragment } else if (typeof expression.cast === 'string') { result.values.push(expression.value); - result.text += `CAST(${placeholder} AS "${expression.cast}")`; + result.text += `CAST(${placeholder} AS ${expression.cast})`; } else { result.values.push(expression.value);