コード例 #1
0
ファイル: AlterOps.cs プロジェクト: timothydodd/dbshell
 public override string ToString()
 {
     return("CHANGE " + OldObject.ToString());
 }
コード例 #2
0
ファイル: AlterOps.cs プロジェクト: timothydodd/dbshell
 public override string ToString()
 {
     return("RENAME " + OldObject.ToString() + "->" + NewName.ToString());
 }
コード例 #3
0
ファイル: AlterOps.cs プロジェクト: timothydodd/dbshell
 public override string ToString()
 {
     return("CREATE " + NewObject.ToString());
 }
コード例 #4
0
ファイル: AlterOps.cs プロジェクト: timothydodd/dbshell
 public override string ToString()
 {
     return("DROP " + OldObject.ToString());
 }
コード例 #5
0
ファイル: AlterPlan.cs プロジェクト: timothydodd/dbshell
 public override string ToString()
 {
     return(RecreatedObject.ToString());
 }
コード例 #6
0
ファイル: AlterPlan.cs プロジェクト: timothydodd/dbshell
        // this structure is incrementally loaded, when needed
        //int m_fixedOrderCounter = 0;

        public void RecreateObject(DatabaseObjectInfo recreatedObject, DatabaseObjectInfo newVersion)
        {
            foreach (var it in RecreatedItems)
            {
                if (it.RecreatedObject == recreatedObject)
                {
                    if (it.NewVersion != null && newVersion != null)
                    {
                        throw new InternalError("DBSH-00140 Two new versions of object " + recreatedObject.ToString());
                    }
                    it.NewVersion = newVersion ?? it.NewVersion;
                    return;
                }
            }
            RecreatedItems.Add(new RecreatedItem {
                RecreatedObject = recreatedObject, NewVersion = newVersion
            });
        }