Skip to content

Conversation

@pubkraal
Copy link

This commit creates naive support for MSSQL. It works, but it doesn't support the Locker interface. The sp_getapplock and sp_releaseapplock procedures are a cause for a big headache, but I'm willing to into that a bit later. At least with this you can start using schema to manage your MSSQL database migrations properly.

@pubkraal pubkraal force-pushed the mssql branch 2 times, most recently from 5fd7f24 to 4dd588b Compare March 17, 2022 07:26
@pubkraal
Copy link
Author

I pushed some extra changes in the readme, this should be as close as I can get it. @adlio curious to your thoughts :).

@adlio
Copy link
Owner

adlio commented Mar 18, 2022

@pubkraal I'm into the iterative approach. Reviewing...

@adlio adlio merged commit 3b73718 into adlio:main Mar 25, 2022
Copy link
Owner

@adlio adlio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution @pubkraal


tests := []qtnTest{
{"public", "ta[ble", `[public].[ta[ble]`},
{"pu[b]lic", "ta[ble", `[pu[b]]lic].[ta[ble]`},
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't use MS SQL much, and this is well into the territory of "just don't name the table that", but the imbalanced brackets looked wrong to me. I double-checked and indeed this matches QUOTENAME() on MSSQL 2019. Weird.

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.

2 participants