diff --git a/source2/Debug/Cosmos.Debug.Common/CDebugger/DebugSymbol.cs b/source2/Debug/Cosmos.Debug.Common/CDebugger/DebugSymbol.cs index 0449dc5f1..3f50eb0f9 100644 --- a/source2/Debug/Cosmos.Debug.Common/CDebugger/DebugSymbol.cs +++ b/source2/Debug/Cosmos.Debug.Common/CDebugger/DebugSymbol.cs @@ -1,4 +1,6 @@ -using System; +using FirebirdSql.Data.FirebirdClient; +using FirebirdSql.Data.Isql; +using System; using System.Collections.Generic; using System.Linq; using System.Text; @@ -31,7 +33,26 @@ namespace Cosmos.Debug.Common.CDebugger } public class MLDebugSymbol { + + protected static void CreateCPDB(string aPathname) { + var xCSB = new FbConnectionStringBuilder(); + xCSB.ServerType = FbServerType.Embedded; + xCSB.Database = @"m:\temp\Cosmos.cpdb"; + + FbConnection.CreateDatabase(xCSB.ToString()); + + using (var xConn = new FbConnection(xCSB.ToString())) { + var xExec = new FbBatchExecution(xConn); + //foreach (string cmd in script.Results) { + // xExec.SqlStatements.Add(cmd); + //} + //fbe.Execute(); + } + } + public static void WriteSymbolsListToFile(IEnumerable aSymbols, string aFile) { + CreateCPDB(Path.ChangeExtension(aFile, ".cpdb")); + var xDS = new SymbolsDS(); // This is a dataset and XML currently. // Later change it to a real DB as we don't need it in RAM all at once but we need it to be fast. diff --git a/source2/Debug/Cosmos.Debug.Common/Cosmos.Debug.Common2010.csproj b/source2/Debug/Cosmos.Debug.Common/Cosmos.Debug.Common2010.csproj index 9b5b934f1..07af426db 100644 --- a/source2/Debug/Cosmos.Debug.Common/Cosmos.Debug.Common2010.csproj +++ b/source2/Debug/Cosmos.Debug.Common/Cosmos.Debug.Common2010.csproj @@ -121,7 +121,7 @@ - + PreserveNewest diff --git a/source2/Debug/Cosmos.Debug.Common/fbclient.dll b/source2/Debug/Cosmos.Debug.Common/fbembed.dll similarity index 100% rename from source2/Debug/Cosmos.Debug.Common/fbclient.dll rename to source2/Debug/Cosmos.Debug.Common/fbembed.dll diff --git a/source2/Users/Kudzu/FBTest/FBTest.csproj b/source2/Users/Kudzu/FBTest/FBTest.csproj index c75afde92..c2e4dd09a 100644 --- a/source2/Users/Kudzu/FBTest/FBTest.csproj +++ b/source2/Users/Kudzu/FBTest/FBTest.csproj @@ -11,7 +11,8 @@ FBTest FBTest v4.0 - Client + + 512 SAK SAK @@ -56,6 +57,9 @@ Cosmos.Debug.Common2010 + + +