Skip to content

Commit a64cff3

Browse files
authored
Merge pull request #17 from ret-Phoenix/release_15
Косметический фикс + проверка тестов на совместимость с OneScript.1.0.15
2 parents 1d0cb43 + 433d106 commit a64cff3

File tree

8 files changed

+22
-16
lines changed

8 files changed

+22
-16
lines changed

fixtures/ms-sql-server-con-str.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Integrated Security=SSPI;Persist Security Info=False;User ID="";Initial Catalog="test";Data Source=FIN91\SQLEXPRESS
1+
Integrated Security=SSPI;Persist Security Info=False;User ID="";Initial Catalog="test";Data Source=VAIO\SQLEXPRESS

fixtures/pgsql-con-str.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Host=localhost;Username=testuser;Password=123;Database=test;Port=5432
1+
Host=localhost;Username=testuser;Password=testuser;Database=test;Port=5432

oscript-sql/QueryResult.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
using System.Threading.Tasks;
1212
using System.Data.SQLite;
1313
using System.Data.Common;
14+
using ScriptEngine.HostedScript.Library.Binary;
1415

1516
namespace OScriptSql
1617
{

oscript-sql/SQLQuery.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ public int ExecuteCommand()
136136

137137
string[] verInfo = versionOnescript.Split('.');
138138

139-
if (Convert.ToInt64(verInfo[2]) >= 15)
140-
{
141-
Console.WriteLine("> 15");
142-
}
139+
//if (Convert.ToInt64(verInfo[2]) >= 15)
140+
//{
141+
// Console.WriteLine("> 15");
142+
//}
143143

144144
var result = new QueryResult();
145145

oscript-sql/oscript-sql.csproj

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,20 @@
5858
<SpecificVersion>False</SpecificVersion>
5959
<HintPath>..\..\..\portable\OneScript\bin\ext\sql\MySql.Data.dll</HintPath>
6060
</Reference>
61-
<Reference Include="Npgsql, Version=3.1.7.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7, processorArchitecture=MSIL">
62-
<HintPath>..\packages\Npgsql.3.1.7\lib\net45\Npgsql.dll</HintPath>
61+
<Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
62+
<HintPath>..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
6363
<Private>True</Private>
6464
</Reference>
65-
<Reference Include="ScriptEngine, Version=1.0.14.195, Culture=neutral, processorArchitecture=x86">
66-
<HintPath>..\packages\OneScript.1.0.14\lib\net40\ScriptEngine.dll</HintPath>
65+
<Reference Include="Npgsql, Version=3.1.9.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7, processorArchitecture=MSIL">
66+
<HintPath>..\packages\Npgsql.3.1.9\lib\net45\Npgsql.dll</HintPath>
6767
<Private>True</Private>
6868
</Reference>
69-
<Reference Include="ScriptEngine.HostedScript, Version=1.0.14.195, Culture=neutral, processorArchitecture=x86">
70-
<HintPath>..\packages\OneScript.StandardLibrary.1.0.14\lib\net40\ScriptEngine.HostedScript.dll</HintPath>
69+
<Reference Include="ScriptEngine, Version=1.0.15.260, Culture=neutral, processorArchitecture=MSIL">
70+
<HintPath>..\packages\OneScript.1.0.15\lib\net40\ScriptEngine.dll</HintPath>
71+
<Private>True</Private>
72+
</Reference>
73+
<Reference Include="ScriptEngine.HostedScript, Version=1.0.15.260, Culture=neutral, processorArchitecture=MSIL">
74+
<HintPath>..\packages\OneScript.StandardLibrary.1.0.15\lib\net40\ScriptEngine.HostedScript.dll</HintPath>
7175
<Private>True</Private>
7276
</Reference>
7377
<Reference Include="System" />

oscript-sql/packages.config

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
33
<package id="DotNetZip" version="1.10.1" targetFramework="net45" />
4-
<package id="Npgsql" version="3.1.7" targetFramework="net45" />
5-
<package id="OneScript" version="1.0.14" targetFramework="net45" />
6-
<package id="OneScript.StandardLibrary" version="1.0.14" targetFramework="net45" />
4+
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net45" />
5+
<package id="Npgsql" version="3.1.9" targetFramework="net45" />
6+
<package id="OneScript" version="1.0.15" targetFramework="net45" />
7+
<package id="OneScript.StandardLibrary" version="1.0.15" targetFramework="net45" />
78
</packages>

release/release-bin.zip

410 KB
Binary file not shown.

tests/test-ms-sql-server.os

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
Соединение = Новый Соединение();
4848
Соединение.ТипСУБД = Соединение.ТипыСУБД.MSSQLServer;
4949
Соединение.СтрокаСоединения = СтрокаСоединения;
50-
Соединение.Открыть();
5150

51+
Соединение.Открыть();
5252
ЗапросВставка = Новый Запрос();
5353
ЗапросВставка.УстановитьСоединение(Соединение);
5454
ЗапросВставка.Текст = "Create table #users (id integer, name varchar(50))";

0 commit comments

Comments
 (0)