@malloydata/malloy 0.0.197-dev241009193540 → 0.0.197-dev241009205116

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -50,6 +50,9 @@ class ExprCast extends expression_def_1.ExpressionDef {
50
50
  else {
51
51
  this.logError('invalid-sql-native-type', `Cast type \`${this.castType.raw}\` is invalid for ${dialect.name} dialect`);
52
52
  }
53
+ if (this.safe && !dialect.supportsSafeCast) {
54
+ this.logError('dialect-cast-unsafe-only', `The SQL dialect '${fs.dialectName()}' does not supply a safe cast operator`);
55
+ }
53
56
  }
54
57
  }
55
58
  return {
@@ -315,6 +315,7 @@ type MessageParameterTypes = {
315
315
  'sql-is-not-null': string;
316
316
  'sql-is-null': string;
317
317
  'illegal-record-property-type': string;
318
+ 'dialect-cast-unsafe-only': string;
318
319
  };
319
320
  export declare const MESSAGE_FORMATTERS: PartialErrorCodeMessageMap;
320
321
  export type MessageCode = keyof MessageParameterTypes;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/malloy",
3
- "version": "0.0.197-dev241009193540",
3
+ "version": "0.0.197-dev241009205116",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",