-
Notifications
You must be signed in to change notification settings - Fork 931
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
Changes from 1 commit
7c8aa5a
4d36a19
fd84733
fe0e8ac
728ede7
704c122
96ac0d3
ab0410c
da88449
d75f7ef
8b832cf
e794efe
d04fafa
3a5395e
d71f510
b42cfb3
907b5cf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,8 +102,17 @@ private static void SetupSqlServerOdbc(Cfg.Configuration cfg) | |
|
||
private static void SetupFirebird(Cfg.Configuration cfg) | ||
{ | ||
Directory.CreateDirectory(@"D:\SqlData\Firebird"); | ||
|
||
var connStr = cfg.Properties[Cfg.Environment.ConnectionString]; | ||
FbConnection.CreateDatabase(connStr, forcedWrites:false, overwrite:true); | ||
try | ||
{ | ||
FbConnection.DropDatabase(connStr); | ||
} | ||
catch (Exception e) | ||
{ | ||
Console.WriteLine(e); | ||
} | ||
FbConnection.CreateDatabase(connStr, forcedWrites:false); | ||
} | ||
|
||
private static void SetupSqlServerCe(Cfg.Configuration cfg) | ||
|
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 not make it local?
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.
Local to the database server? Would be on
C:
, which is not local to the host. Local to the NHibernate test client? The path seems not frozen, only embedded mode can do that, where the client is the server too. I think Firebird mainstream usage is as an actual server, not as embedded mode. So I would rather test it as an actual server. And as showcase by Nathan branch, Firebird v3 embedded mode seems to need a new dialect.When using a database server, does it really make sens to locate the database relatively to the client? That should be the server choice, not the client. Currently this is done with a configured alias in
FireBird_3_0\databases.conf
file, which decides where to put the file for the aliasnhibernate
.