Inheritance: SqlStatement, IPlSqlStatement
        public static void CloseCursor()
        {
            var statement = new CloseStatement("vector1");

            var sql      = statement.ToString();
            var expected = "CLOSE vector1";

            Assert.AreEqual(expected, sql);
        }
        public static void CloseCursor()
        {
            var statement = new CloseStatement("vector1");

            var sql = statement.ToString();
            var expected = "CLOSE vector1";

            Assert.AreEqual(expected, sql);
        }
Exemple #3
0
 protected virtual SqlStatement VisitClose(CloseStatement statement)
 {
     return new CloseStatement(statement.CursorName);
 }
        public void Close()
        {
            var statement = new CloseStatement("c1");

            SerializeAndAssert(statement, (serialized, deserialized) => {
                Assert.IsNotNull(deserialized);
                Assert.AreEqual("c1", deserialized.CursorName);
            });
        }
Exemple #5
0
 protected virtual SqlStatement VisitClose(CloseStatement statement)
 {
     return(new CloseStatement(statement.CursorName));
 }