Symptoms

Assume that you execute a statement that contains a LIKE operator with the collation Japanese_XJIS_100_CI_AS in Microsoft SQL Server 2008 R2, SQL Server 2012, or SQL Server 2014. There is a Japanese repeat character 'ー' (Cho-On) in the LIKE pattern. When you execute the statement, unmatched LIKE pattern can be treated as matched. For example, N'BAー1' does not match N'%AB1', when you execute the following statement:

if (N'BAー1' like N'%AB1%' Collate Japanese_XJIS_100_CI_AS)
print 'Japanese_XJIS_100_CI_AS : BAー1 like %AB1% --> match'

The result is matched.

Cause

The issue occurs because the Japanese repeat char is processed incorrectly.

Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. Check out the latest cumulative updates for SQL Server:


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

What affected your experience?

Any additional feedback? (Optional)

Thank you for your feedback!

×