mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-17 09:35:37 -05:00
Add support for using generic SQL queries to filter EditData rows. (#605)
This commit is contained in:
@@ -75,5 +75,21 @@ namespace Microsoft.SqlTools.ServiceLayer.UnitTests.UtilityTests
|
||||
{
|
||||
Assert.Equal(output, FromSqlScript.UnwrapLiteral(input));
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData("[name]", true)]
|
||||
[InlineData("[ name ]", true)]
|
||||
[InlineData("[na[[]me]", true)]
|
||||
[InlineData("[]", true)]
|
||||
[InlineData("name", false)]
|
||||
[InlineData("[name", false)]
|
||||
[InlineData("name]", false)]
|
||||
[InlineData("[]name", false)]
|
||||
[InlineData("name[]", false)]
|
||||
[InlineData("[na]me", false)]
|
||||
public void BracketedIdentifierTest(string input, bool output)
|
||||
{
|
||||
Assert.Equal(output, FromSqlScript.IsIdentifierBracketed(input));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user