Skip to content

Commit 1b2b55a

Browse files
author
Sergey Koshcheyev
committed
NH-909 fix
SVN: trunk@2635
1 parent 507a464 commit 1b2b55a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/NHibernate.Test/HQLFunctionTest/SimpleFunctionsTest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using System.Collections;
3+
using NHibernate.SqlTypes;
34
using NUnit.Framework;
45
using NHibernate.Dialect.Function;
56
using NHibernate;
@@ -64,7 +65,7 @@ public void CastFunc()
6465

6566
args.Add("'123'");
6667
args.Add("long");
67-
string expected = string.Format("cast({0} as {1})", args[0], "BIGINT");
68+
string expected = string.Format("cast({0} as {1})", args[0], factoryImpl.Dialect.GetCastTypeName(SqlTypeFactory.Int64));
6869
Assert.AreEqual(expected, cf.Render(args, factoryImpl));
6970

7071
args.Clear();

0 commit comments

Comments
 (0)