Skip to content

Commit d6062f3

Browse files
committed
LikeFunctionWithEscapeCharacter(): Use escape character that doesn't cause trouble on MySql.
On MySql, the backslash is an escape character for e.g. "\n".
1 parent f8a80b2 commit d6062f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NHibernate.Test/Linq/FunctionTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public void LikeFunctionWithEscapeCharacter()
2929
using (var tx = session.BeginTransaction())
3030
{
3131
var employeeName = "Mar%aret";
32-
var escapeChar = '\\';
32+
var escapeChar = '#';
3333
var employeeNameEscaped = employeeName.Replace("%", escapeChar + "%");
3434

3535
//This entity will be flushed to the db, but rolled back when the test completes

0 commit comments

Comments
 (0)