Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: correct type inference for arithmetic operations #359

Merged
merged 8 commits into from
Jan 6, 2025

Conversation

Newbie012
Copy link
Collaborator

@Newbie012 Newbie012 commented Jan 4, 2025

fixes #357

This update addresses an issue where the inferred type was incorrect when dealing with arithmetic operations in SQL queries. The changes ensure that the type is accurately resolved based on the operation and operand types.

This update addresses an issue where the inferred type was incorrect when dealing with arithmetic operations in SQL queries. The changes ensure that the type is accurately resolved based on the operation and operand types.
Copy link

changeset-bot bot commented Jan 4, 2025

🦋 Changeset detected

Latest commit: 704c9c3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 17 packages
Name Type
@ts-safeql/generate Patch
@ts-safeql/eslint-plugin Patch
@ts-safeql/shared Patch
@ts-safeql/sql-ast Patch
@ts-safeql-demos/basic-flat-config Patch
@ts-safeql-demos/basic-migrations-raw Patch
@ts-safeql-demos/basic-transform-type Patch
@ts-safeql-demos/basic Patch
@ts-safeql-demos/big-project Patch
@ts-safeql-demos/config-file-flat-config Patch
@ts-safeql-demos/from-config-file Patch
@ts-safeql-demos/multi-connections Patch
@ts-safeql-demos/playground Patch
@ts-safeql-demos/postgresjs-custom-types Patch
@ts-safeql-demos/postgresjs-demo Patch
@ts-safeql-demos/vercel-postgres Patch
@ts-safeql/test-utils Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Jan 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
safeql ⬜️ Ignored (Inspect) Visit Preview Jan 6, 2025 7:49pm

@Newbie012 Newbie012 force-pushed the fix-arithmetic-type-inference branch from 43d1edb to 0083d6f Compare January 6, 2025 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Subqueries using count(*) and + inferred as boolean instead of string
1 participant