Пример #1
0
 public override void VisitAfter(DeleteStmt deleteStmt)
 {
     if (IsPlaceHolderPredicate(deleteStmt.Where))
     {
         deleteStmt.Where = Place((PlaceHolderPredicate)deleteStmt.Where);
     }
 }
Пример #2
0
 public override void VisitOnDelete(DeleteStmt deleteStmt)
 {
     if (this.FindTableAliasName(deleteStmt.Table, _oldTableAliasName) ||
         this.FindTableAliasName(deleteStmt.Table2, _oldTableAliasName))
     {
         // 変更後のテーブル別名が既にあるテーブル別名と重複する場合は、末尾に"_"を付加する
         while (this.FindTableAliasName(deleteStmt.Table, _newTableAliasName) ||
                this.FindTableAliasName(deleteStmt.Table2, _oldTableAliasName))
         {
             _newTableAliasName += "_";
         }
         _scopeStack.Push(new Scope(FromOrResult.FromQuery, true));
     }
     else
     {
         _scopeStack.Push(new Scope(FromOrResult.FromQuery, false));
     }
 }
Пример #3
0
 virtual public void VisitOnDelete(DeleteStmt deleteStmt)
 {
 }
Пример #4
0
 virtual public void VisitAfter(DeleteStmt deleteStmt)
 {
 }
Пример #5
0
 virtual public void VisitBefore(DeleteStmt deleteStmt)
 {
 }
Пример #6
0
 public override void VisitBefore(DeleteStmt deleteStmt)
 {
     _updateTableStmt = true;
 }
Пример #7
0
 public override void VisitAfter(DeleteStmt deleteStmt)
 {
     deleteStmt.Where = this.AddPredicate(deleteStmt.Where);
     --_queryNestLevel;
 }
Пример #8
0
 public override void VisitOnWhere(DeleteStmt deleteStmt, int offset)
 {
     _predicate = deleteStmt.Where;
 }
Пример #9
0
 public void VisitOnWhere(DeleteStmt deleteStmt, int offset)
 {
     _visitor.VisitOnWhere(deleteStmt, offset);
 }
Пример #10
0
 public void VisitOnFrom2(DeleteStmt deleteStmt, int offset)
 {
     _visitor.VisitOnFrom2(deleteStmt, offset);
 }
Пример #11
0
 public void VisitOnDelete(DeleteStmt deleteStmt)
 {
     _visitor.VisitOnDelete(deleteStmt);
 }
Пример #12
0
 public void VisitAfter(DeleteStmt deleteStmt)
 {
     _visitor.VisitAfter(deleteStmt);
 }
Пример #13
0
 public void VisitBefore(DeleteStmt deleteStmt)
 {
     _visitor.VisitBefore(deleteStmt);
 }
Пример #14
0
 virtual public void VisitOnFrom2(DeleteStmt deleteStmt, int offset)
 {
 }
Пример #15
0
 public override void VisitBefore(DeleteStmt deleteStmt)
 {
     ++_queryNestLevel;
 }
Пример #16
0
 virtual public void VisitOnWhere(DeleteStmt deleteStmt, int offset)
 {
 }
 public override void VisitBefore(DeleteStmt deleteStmt)
 {
     deleteStmt.Where = null;
 }