Exemplo n.º 1
0
        public override string Translate(SqlCompilerContext context, SqlDeclareCursor node, DeclareCursorSection section)
        {
            switch (section)
            {
            case DeclareCursorSection.Entry:
                return("DECLARE " + QuoteIdentifier(node.Cursor.Name));

            case DeclareCursorSection.Sensivity:
                return("");

            case DeclareCursorSection.Scrollability:
                return(node.Cursor.Scroll ? "SCROLL" : "NO SCROLL");

            case DeclareCursorSection.Cursor:
                return("CURSOR");

            case DeclareCursorSection.Holdability:
                return(node.Cursor.WithHold ? "WITH HOLD" : "");

            case DeclareCursorSection.Returnability:
            case DeclareCursorSection.Updatability:
            case DeclareCursorSection.Exit:
                return("");

            case DeclareCursorSection.For:
                return("FOR");
            }
            return(base.Translate(context, node, section));
        }
Exemplo n.º 2
0
 public override string Translate(SqlCompilerContext context, SqlDeclareCursor node, DeclareCursorSection section)
 {
     if (section == DeclareCursorSection.Holdability || section == DeclareCursorSection.Returnability)
     {
         return(string.Empty);
     }
     return(base.Translate(context, node, section));
 }
Exemplo n.º 3
0
 public override void Visit(SqlDeclareCursor node)
 {
 }
Exemplo n.º 4
0
 public virtual void Visit(SqlDeclareCursor node)
 {
     VisitInternal(node.Cursor);
 }
Exemplo n.º 5
0
 public void Visit(SqlDeclareCursor node)
 {
 }