public void NH1181_SupportHqlLower()
        {
            var dialect = new JetDialect();
            ISQLFunction func;
            Assert.IsTrue(dialect.Functions.TryGetValue("lower", out func));

            var sqlFuncParams = new StringCollection { "foo" };
            var sqlString = func.Render(sqlFuncParams, null).ToString();

            Assert.That(sqlString, Is.EqualTo("lcase(foo)"));
        }
Exemple #2
0
        public void NH1181_SupportHqlLower()
        {
            var          dialect = new JetDialect();
            ISQLFunction func;

            Assert.IsTrue(dialect.Functions.TryGetValue("lower", out func));

            var sqlFuncParams = new StringCollection {
                "foo"
            };
            var sqlString = func.Render(sqlFuncParams, null).ToString();

            Assert.That(sqlString, Is.EqualTo("lcase(foo)"));
        }