PeterW
Member³
I encountered a strange bug while adding a package (spec and body) to our version control system (Visual SourceSafe). These are the steps to reproduce it:
1. Create a package specification and package body and compile them in your DB.
2. Close all open windows.
3. Open the 'Recent objects'-folder in your Object Browser.
4. Right click the new package specification and select 'Add to VCS'.
5. Enter a comment ('Add spec to VSS') and a new read only program window is now opened with the package specification. The window title is 'P - Edit package ' (??)
6. Go back to the Object Browser and now right click the new package body and also select 'Add to VCS'.
7. Enter a comment ('Add body to VSS') and an editable program window is opened which contains the package body. The window title is 'P - Edit package body '.
This looks almost right, but the following seems to have happened:
- The second comment (for the package body) has been added to the window of the package specification and the contents of that window have been saved as the file for the package body!
- So now I have one correct file for the specification (.pks) and one wrong file with name .pkb, which also contains the code for the specification (and an extra comment)!
The problem seems to be the Window List, because when I close the first window after step 5, everything turns out correct!
This has always worked for us in version 9. I tested with version 10.0.2.1697
1. Create a package specification and package body and compile them in your DB.
2. Close all open windows.
3. Open the 'Recent objects'-folder in your Object Browser.
4. Right click the new package specification and select 'Add to VCS'.
5. Enter a comment ('Add spec to VSS') and a new read only program window is now opened with the package specification. The window title is 'P - Edit package ' (??)
6. Go back to the Object Browser and now right click the new package body and also select 'Add to VCS'.
7. Enter a comment ('Add body to VSS') and an editable program window is opened which contains the package body. The window title is 'P - Edit package body '.
This looks almost right, but the following seems to have happened:
- The second comment (for the package body) has been added to the window of the package specification and the contents of that window have been saved as the file for the package body!
- So now I have one correct file for the specification (.pks) and one wrong file with name .pkb, which also contains the code for the specification (and an extra comment)!
The problem seems to be the Window List, because when I close the first window after step 5, everything turns out correct!
This has always worked for us in version 9. I tested with version 10.0.2.1697