-
-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(@cspell/dict-sql): Add some more terms and ignore
N'
(#1291)
fix: Add some more terms and ignore expressions
- Loading branch information
Showing
7 changed files
with
604 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
{ | ||
"version": "0.2", | ||
"files": [ | ||
"**/*.{md,txt,sql}" | ||
"files": ["**/*.{md,txt,sql}"], | ||
"dictionaries": [], | ||
"overrides": [ | ||
{ | ||
"filename": "*.txt", | ||
"dictionaries": ["sql"] | ||
} | ||
], | ||
"dictionaries": [ | ||
], | ||
"import": [ | ||
"./cspell-ext.json" | ||
] | ||
"enableFiletypes": ["sql"], | ||
"import": ["./cspell-ext.json"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
-- This is a collection of SQL Constants and terms | ||
|
||
-- Character string constants | ||
SELECT 'Cincinnati' | ||
SELECT 'O''Brien' | ||
SELECT 'Process X is 50% complete.' | ||
SELECT 'The level for job_id: %d should be between %d and %d.' | ||
SELECT "O'Brien" | ||
SELECT N'time is running' | ||
|
||
-- Binary constants | ||
SELECT 0xAE | ||
SELECT 0x12Ef | ||
SELECT 0x69048AEFDD010E | ||
SELECT 0xBADC0FFEED | ||
SELECT 0x -- (empty binary string) | ||
|
||
-- cspell:ignore Brien |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/************************************************************************************************************************************ | ||
* Generates the code to update the collation for all affected columns in the table * | ||
************************************************************************************************************************************/ | ||
INSERT INTO #tempscriptstore (ScriptType, | ||
script) | ||
SELECT 'AlterCollation', | ||
N'ALTER TABLE ' + QUOTENAME(@SchemaName) + N'.' + QUOTENAME(@TableName) + N' ALTER COLUMN ' | ||
+ QUOTENAME(c.name) + ' ' | ||
+ CASE WHEN ty.name = N'ntext' | ||
THEN ty.name + N' COLLATE ' + @DatabaseCollation + ' ' | ||
ELSE ty.name + N'(' + CASE WHEN c.max_length = -1 | ||
THEN N'MAX' | ||
ELSE CASE WHEN ty.name = N'nvarchar' | ||
THEN CAST(c.max_length / 2 AS nvarchar(20)) | ||
ELSE CAST(c.max_length AS nvarchar(20)) | ||
END | ||
END + N') COLLATE ' + @DatabaseCollation | ||
END + CASE WHEN c.is_nullable = 1 THEN N' NULL;' ELSE N' NOT NULL;' END | ||
FROM sys.columns AS c | ||
INNER JOIN sys.types AS ty | ||
ON ty.system_type_id = c.system_type_id | ||
AND ty.name <> N'sysname' | ||
WHERE c.object_id = @object_id | ||
AND c.collation_name <> @DatabaseCollation; | ||
|
||
-- cspell:ignore tempscriptstore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
src/sql.txt | ||
src/tsql.txt |
Oops, something went wrong.