Пример #1
0
		/// <summary></summary>
		static Dialect()
		{
			standardAggregateFunctions["count"] = new CountQueryFunctionInfo();
			standardAggregateFunctions["avg"] = new AvgQueryFunctionInfo();
			standardAggregateFunctions["max"] = new StandardSQLFunction("max");
			standardAggregateFunctions["min"] = new StandardSQLFunction("min");
			standardAggregateFunctions["sum"] = new SumQueryFunctionInfo();
		}
Пример #2
0
        public void StandardFunction()
        {
            IList args = new ArrayList();

            StandardSQLFunction sf = new StandardSQLFunction("fname");

            Assert.AreEqual("fname()", sf.Render(args, factoryImpl).ToString());

            args.Add(1);
            args.Add(2);
            Assert.AreEqual("fname(1, 2)", sf.Render(args, factoryImpl).ToString());
        }