Skip to content
New issue

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

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

Already on GitHub? # to your account

fix(psl): fix a typo in feature gates for schemas_completion #5200

Merged
merged 1 commit into from
Feb 27, 2025

Conversation

aqrln
Copy link
Member

@aqrln aqrln commented Feb 27, 2025

This function should be enabled for mssql, not mysql. It happened to work despite the typo because ultimately the completions are only used by the language server via prisma-schema-wasm, which compiles psl with all features enabled. However, when psl was compiled with mysql feature only (as part of MySQL specific builds of query-engine-wasm and query-compiler-wasm) this led to a dead code warning.

This function should be enabled for `mssql`, not `mysql`. It happened to
work despite the typo because ultimately the completions are only used
by the language server via `prisma-schema-wasm`, which compiles `psl`
with all features enabled. However, when `psl` was compiled with `mysql`
feature only (as part of MySQL specific builds of `query-engine-wasm`
and `query-compiler-wasm`) this led to a dead code warning.
@aqrln aqrln added this to the 6.5.0 milestone Feb 27, 2025
@aqrln aqrln requested a review from a team as a code owner February 27, 2025 10:49
@aqrln aqrln requested review from jkomyno and removed request for a team February 27, 2025 10:49
Copy link

codspeed-hq bot commented Feb 27, 2025

CodSpeed Performance Report

Merging #5200 will not alter performance

Comparing push-wvuyotnwtxnn (db55a0e) with main (6826892)

Summary

✅ 11 untouched benchmarks

Copy link
Contributor

WASM Query Engine file Size

Engine This PR Base branch Diff
Postgres 2.134MiB 2.134MiB 0.000B
Postgres (gzip) 857.830KiB 857.832KiB -2.000B
Mysql 2.098MiB 2.098MiB 0.000B
Mysql (gzip) 842.886KiB 842.892KiB -6.000B
Sqlite 2.008MiB 2.008MiB 0.000B
Sqlite (gzip) 806.900KiB 806.904KiB -4.000B

@aqrln aqrln merged commit 8ed5717 into main Feb 27, 2025
370 checks passed
@aqrln aqrln deleted the push-wvuyotnwtxnn branch February 27, 2025 14:16
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants