Skip to content

Conversation

@sbdchd
Copy link
Owner

@sbdchd sbdchd commented Nov 19, 2025

select
  '{123}'::pg_catalog.varchar(10)[],
  '{123}'::pg_catalog.varchar(10),
  '{123}'::pg_catalog.varchar,
  '{123}'::varchar,
  cast('{123}' as pg_catalog.varchar(10)[]),
  pg_catalog.varchar(10) '{123}',
  interval '1' month;

Make sure we can call the .ty() and .expr() method on ast::CastExpr and have things just work.

```sql
select
  '{123}'::pg_catalog.varchar(10)[],
  '{123}'::pg_catalog.varchar(10),
  '{123}'::pg_catalog.varchar,
  '{123}'::varchar,
  cast('{123}' as pg_catalog.varchar(10)[]),
  pg_catalog.varchar(10) '{123}',
  interval '1' month;
```

Make sure we can call the `.ty()` and `.expr()` method on `ast::CastExpr`
and have things just work.
@sbdchd sbdchd added the automerge automerge with kodiak label Nov 19, 2025
@kodiakhq kodiakhq bot merged commit eff6fe0 into master Nov 19, 2025
32 checks passed
@kodiakhq kodiakhq bot deleted the steved-fix-casts-in-ast branch November 19, 2025 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge automerge with kodiak

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants