Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to No actionable issue is established from the supplied evidence. Real SQL Server validation remains pending before the draft PR is ready to merge. Pre-merge checks |
|
|
Hi @coyaSONG! I came across this via issue #18260; nice approach with the opt-in flag. I don't have a fix to contribute here since it looks like you and the maintainers have this well in hand, but I'd be happy to help test once it's out of draft :) I can spin up a local SQL Server instance and try useUnicodeStrings: false against a schema with plain VARCHAR columns to confirm the index seek behaves as expected. Let me know if that'd be useful. |
|
@san7iya That would be very useful, thank you. The most valuable check would be against the current PR head with an indexed |
|
Branch synchronization is complete at 4db765b. The current GitHub CI reports 73 successful checks, with one skipped and no failed or pending checks, including the MSSQL matrix. The default Unicode and explicit opt-out behavior remain covered. The real-server VARCHAR index-seek comparison discussed above is still not claimed as completed; maintainer review or that additional validation remains welcome. No human review is claimed. |
|
Warning This pull request has been automatically converted to draft because it is not ready to be merged. Reason(s):
Once you have addressed the issue(s) above, you may |
Pull Request Checklist
Description of Changes
Relates to #18260.
This adds a
useUnicodeStringsMSSQL dialect option. Its default remainstrue, preserving the existingN'...'literal andTYPES.NVarCharbind behavior for all current deployments.Applications whose schemas intentionally use code-page-compatible
VARCHARcolumns can explicitly setuseUnicodeStrings: false. In that mode, string literals omit theNprefix and string bind parameters use Tedious'TYPES.VarChar; non-string bind types are unchanged.The tests cover both the backward-compatible default and the explicit opt-out for literals and bound strings.
Validation performed:
NX_DAEMON=false yarn buildyarn workspace @sequelize/mssql test-unit(10 passing)yarn exec tsc --noEmit --project packages/mssql/tsconfig.jsongit diff --checkList of Breaking Changes
None. Unicode strings remain enabled by default; behavior changes only when the new option is explicitly set to
false.Summary by CodeRabbit