Hi !
I know this problem is not due to the .net provider but perharps someone
could give me an advice :
I have this Error : _"CHARACTER SET ISO8859_1 is not installed"_ when using
Firebird embedded (2.1.3) with TestDriven.net, nUnit and Firebird.net when
unit testing a DLL.
The problem comes from the firebird "intl" folder : the error disappear if I
copy this folder inside the TestDriven.net installation directory.
Is there another and "clean" way to avoid this error (without adding
firebird files to TestDriven.net) ?
What I don't understand is that nUnit change the working path of
TestDriven.net to the DLL working directory, so do why do i need to copy
outside the "intl" folder ?
***************************************
What I've tried :
Add RootDirectory = d:\fb to the firebird.conf file, and
copy all firebird embedded in d:\fb : Still the same error.
Add FIREBIRD to windows environement variable with d:\fb value : Still
the same error.
***************************************
Steps To Reproduce the problem:
With :
- Visual Studio 2008
- nUnit 2.7 or mbUnit
- TestDriven.net 3.0
- Firebird Embedded 2.1.3
- Firebird .net Provider
Create a dll project, copy firebird embedded files to Debug folder and add
the following class :
Imports FirebirdSql.Data.FirebirdClient
Imports FirebirdSql.Data
Imports System.IO
Imports MbUnit.Framework
<TestFixture()> _
Public Class nUnitDummy
<Test()> _
Public Sub Dummy()
Dim connString As String =
"User=SYSDBA;Password=masterkey;Database=""E:\TESTDB.FDB"";Dialect=3;Charset=UTF8;Pooling=true;Packet
Size=8192;ServerType=1"
FbConnection.CreateDatabase(connString)
Dim createSql As String = "CREATE TABLE CITIES (NAME VARCHAR(70)
CHARACTER SET ISO8859_1 NOT NULL );"
Dim fbScript As New FirebirdSql.Data.Isql.FbScript(New
StringReader(createSql))
fbScript.Parse()
Dim fbConn As New FbConnection(connString)
fbConn.Open()
Dim fbBatch As New Isql.FbBatchExecution(fbConn, fbScript)
fbBatch.Execute(True)
fbConn.Close()
Assert.IsTrue(True)
End Sub
End Class
Launch unit test with TestDriven : "Launch with > Debbuger"
Thanks !
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider