-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Added missing [internal_type] and [internal_type_desc] values for "sys.internal_tables" #1784
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
Conversation
Found (and formatted) the missing items using the following query (executed in SQL Server 2019, CTP 2.3):
```sql
;WITH cte AS
(
SELECT DISTINCT -- NOT IN list populated with IDs on current doc page
IIF(tab.[internal_type] NOT IN (201, 202, 203, 205, 206, 207, 208, 209, 210, 236),
'*',
' ') AS [Missing],
tab.[internal_type],
tab.[internal_type_desc]
FROM msdb.sys.internal_tables tab -- [msdb] has more internal table types than [master]
)
SELECT *,
IIF(cte.[Missing] = '*',
CONCAT(N'<br /><br /> ', cte.[internal_type], N' = **', LOWER(REPLACE(cte.[internal_type_desc], N'_', N'\_')), N'**'),
N'') AS [TypeFormattedForDoc],
IIF(cte.[Missing] = '*',
CONCAT(N'<br /><br /> ', REPLACE(cte.[internal_type_desc], N'_', N'\_')),
N'') AS [TypeDescFormattedForDoc]
FROM cte
ORDER BY cte.[internal_type];
```
Also properly escaped underscores in values (but just for these two table cells; I did not review the rest of the page for unescaped underscores).
|
@srutzky : Thanks for your contribution! The author, @stevestein, has been notified to review your proposed change. |
|
@srutzky - thanks for updating this. We're not typically escaping underscores unless they're causing problems with rendering (for example, an underscore with whitespace to the left or right of it). If you can update so this PR only contains the missing types that would be great. Thanks! |
|
@stevestein I can, but can't non-escaped underscores cause formatting problems? Doesn't that increase the chances of unexpected formatting by leaving it up to the parser? That's why I have been added them. But I can stop doing that if it's not necessary. |
|
If the formatting looks incorrect when viewing the file then escape the underscore, but if it renders ok we're leaving as is. So not necessary unless you actually see formatting issues. |
Unescaped the escaped underscores for both `internal_type` and `internal_type_desc` sections.
|
@srutzky : Thanks for your contribution! The author, @stevestein, has been notified to review your proposed change. |
|
@stevestein The changes you requested have been made. Please review. |
|
@srutzky - looks good. Thanks for updating! #sign-off |
Found (and formatted) the missing items using the following query (executed in SQL Server 2019, CTP 2.3):
which returned the following (first 3 columns only):
Also properly escaped underscores in values (but just for these two table cells; I did not review the rest of the page for unescaped underscores).