-
Notifications
You must be signed in to change notification settings - Fork 934
NH-4026 - Upgrade Firebird driver and use server #639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
7c8aa5a
NH-4026 - upgrading Firebird driver and using server instead of embed…
fredericDelaporte 4d36a19
NH-4026 - A connection string parameter is missing for addressing Fir…
fredericDelaporte fd84733
NH-4026 - some other changes just to try, although my laptop does not…
fredericDelaporte fe0e8ac
NH-4026 - fix the test database setup (or at least tries to).
fredericDelaporte 728ede7
NH-4026 - let the TestDatabaseSetup create the db.
fredericDelaporte 704c122
NH-4026 - trying to document the relevant things I have done to final…
fredericDelaporte 96ac0d3
NH-4026 - Firebird locks table till connection are actually closed, n…
fredericDelaporte ab0410c
NH-4026 - some more explanations.
fredericDelaporte da88449
Revert "NH-4026 - some more explanations."
fredericDelaporte d75f7ef
NH-4026 - some more explanations.
fredericDelaporte 8b832cf
NH-4026 - fixing remaining failing tests.
fredericDelaporte e794efe
NH-4026 - remove ignoring previously failed.
fredericDelaporte d04fafa
NH-4026 - fix a typo in default test config file. Align naming on oth…
fredericDelaporte 3a5395e
NH-4026 - disabling forced writes and simplifying setup.
fredericDelaporte d71f510
NH-4026 - Updating instruction file
fredericDelaporte b42cfb3
NH-4026 - relocating the db, and ensuring forced write option by drop…
fredericDelaporte 907b5cf
NH-4026 - removing explicit dependency on D: from TestDatabaseSetup.
fredericDelaporte File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
19,131 changes: 0 additions & 19,131 deletions
19,131
lib/teamcity/firebird/NHibernate.Test.last-results.xml
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
|
||
Installation steps for Firebird for NH TeamCity: | ||
|
||
1. Download Firebird (Firebird-3.0.2.32703_0_x64): https://www.firebirdsql.org/en/server-packages/; | ||
2. Run the installer AS ADMINISTRATOR... Use the default firebird password when prompted: masterkey. | ||
3. Leave other settings with their defaults. | ||
4. The setup should install Firebird on the machine; | ||
5. Go into Firebird folder (c:\program files\firebird\) and create a folder named Data; | ||
6. Go in Firebird installation directory and open databases.conf. | ||
7. Add in "Live Databases" section: | ||
nhibernate = D:\nhibernate.fdb | ||
Firebird is particularly sensitive to disk performances, and D: is supposed to be local to the | ||
Teamcity host, thus this choice. Content of this drive may be lost. But the TestDatabaseSetup will | ||
instruct Firebird to recreate the database. It is put on the root because Firebird will not create | ||
the folder, and the TestDatabaseSetup should not try to do that because it is used by other hosts | ||
which may not want to do anything on D:. | ||
8. Open firebird.conf. | ||
9. Ensure AuthClient, AuthServer and UserManager are set to Srp only: | ||
AuthServer = Srp | ||
AuthClient = Srp | ||
UserManager = Srp | ||
10. Ensure WireCrypt is set to Enabled. | ||
WireCrypt = Enabled | ||
11. Restart Firebird service. | ||
|
||
For manual testing, take care of not creating it with inadequate acl on the file. This may happen | ||
if you use ISQL with a connection string causing it to create it in embedded mode, without actually | ||
using the server. Prefixing your path with "localhost:" should avoid that. | ||
|
||
For tests performances, and since it is just an expandable test database, better disable forced writes. | ||
Since those tests drop/create schema constantly, they are quite heavy on writes and this single setting | ||
can have a six fold impact on their duration. For changing it, do: | ||
a. Stop Firebird service. | ||
b. From Firebird installation folder, run: | ||
gfix -w async nhibernate -user SYSDBA | ||
(Change "nhibernate" to your own alias or path as appropriate for your setup) | ||
c. Restart Firebird service. | ||
Note that the TestDatabaseSetup will drop and recreate the database when run, with forced writes disabled. |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the correct way to do this is to mark "blob" as a keyword for Firebird dialect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a lot more are missing...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And does not work anyway. Test failing again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those keywords are seldom used in the code base. Only the
Template
class uses them, and not for quoting.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why "date"? it's "blob"
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is the current only registered word. For my local test I have added "blob". But that has no effect on column quoting.