1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-08-10 22:41:43 +02:00

Main build (Jenkins)

This commit is contained in:
Vitaly the Alpaca (bot)
2025-07-10 22:17:13 +03:00
parent a7bc05aeb5
commit ce8f255593
21 changed files with 8567 additions and 8380 deletions

View File

@@ -53,4 +53,8 @@ import TabItem from '@theme/TabItem';
```json title="Результат"
{
"result": true
}
```

View File

@@ -49,4 +49,8 @@ import TabItem from '@theme/TabItem';
```json title="Результат"
{
"result": true
}
```

View File

@@ -48,4 +48,9 @@ import TabItem from '@theme/TabItem';
```json title="Результат"
{
"error": "Token error: 'Cannot drop database \"testbase1\" because it is currently in use.' on server 7562d9747c2a executing on line 1 (code: 3702, state: 4, class: 16)",
"result": false
}
```

View File

@@ -69,4 +69,8 @@ import TabItem from '@theme/TabItem';
```json title="Результат"
{
"result": true
}
```

View File

@@ -51,4 +51,8 @@ import TabItem from '@theme/TabItem';
```json title="Результат"
{
"result": true
}
```

View File

@@ -49,4 +49,8 @@ import TabItem from '@theme/TabItem';
```json title="Результат"
{
"result": true
}
```

View File

@@ -62,4 +62,11 @@ import TabItem from '@theme/TabItem';
```json title="Результат"
{
"result": true,
"commit": {
"result": true
}
}
```

View File

@@ -49,4 +49,122 @@ import TabItem from '@theme/TabItem';
```json title="Результат"
{
"data": [
{
"character_maximum_length": null,
"column_default": null,
"column_name": "tinyint_field",
"data_type": "tinyint",
"is_nullable": "YES"
},
{
"character_maximum_length": null,
"column_default": null,
"column_name": "smallint_field",
"data_type": "smallint",
"is_nullable": "YES"
},
{
"character_maximum_length": null,
"column_default": null,
"column_name": "int_field",
"data_type": "int",
"is_nullable": "YES"
},
{
"character_maximum_length": null,
"column_default": null,
"column_name": "bigint_field",
"data_type": "bigint",
"is_nullable": "YES"
},
{
"character_maximum_length": null,
"column_default": null,
"column_name": "float24_field",
"data_type": "real",
"is_nullable": "YES"
},
{
"character_maximum_length": null,
"column_default": null,
"column_name": "float53_field",
"data_type": "float",
"is_nullable": "YES"
},
{
"character_maximum_length": null,
"column_default": null,
"column_name": "bit_field",
"data_type": "bit",
"is_nullable": "YES"
},
{
"character_maximum_length": 4000,
"column_default": null,
"column_name": "nvarchar_field",
"data_type": "nvarchar",
"is_nullable": "YES"
},
{
"character_maximum_length": -1,
"column_default": null,
"column_name": "varbinary_field",
"data_type": "varbinary",
"is_nullable": "YES"
},
{
"character_maximum_length": null,
"column_default": null,
"column_name": "uid_field",
"data_type": "uniqueidentifier",
"is_nullable": "YES"
},
{
"character_maximum_length": null,
"column_default": null,
"column_name": "numeric_field",
"data_type": "numeric",
"is_nullable": "YES"
},
{
"character_maximum_length": -1,
"column_default": null,
"column_name": "xml_field",
"data_type": "xml",
"is_nullable": "YES"
},
{
"character_maximum_length": null,
"column_default": null,
"column_name": "date_field",
"data_type": "date",
"is_nullable": "YES"
},
{
"character_maximum_length": null,
"column_default": null,
"column_name": "time_field",
"data_type": "time",
"is_nullable": "YES"
},
{
"character_maximum_length": null,
"column_default": null,
"column_name": "dto_field",
"data_type": "datetimeoffset",
"is_nullable": "YES"
},
{
"character_maximum_length": null,
"column_default": null,
"column_name": "datetime_field",
"data_type": "datetime",
"is_nullable": "YES"
}
],
"result": true
}
```

View File

@@ -71,4 +71,8 @@ import TabItem from '@theme/TabItem';
```json title="Результат"
{
"result": true
}
```

File diff suppressed because it is too large Load Diff

View File

@@ -282,7 +282,17 @@ EndFunction
// Map Of KeyAndValue - Result of query execution
Function DeleteDatabase(Val Base, Val Connection = "", Val Tls = "") Export
Result = OPI_SQLQueries.DeleteDatabase(OPI_MSSQL, Base, Connection, Tls);
OPI_TypeConversion.GetLine(Base);
RequestTemplate = "USE master;
|ALTER DATABASE [%1]
|SET SINGLE_USER
|WITH ROLLBACK IMMEDIATE;
|DROP DATABASE [%1];";
QueryText = StrTemplate(RequestTemplate, Base);
Result = ExecuteSQLQuery(QueryText, , , Connection, Tls);
Return Result;
EndFunction

View File

@@ -23844,6 +23844,7 @@ Procedure MSSQL_CreateConnection(FunctionParameters)
OPI_TestDataRetrieval.WriteLog(Connection, "CreateConnection (before base)", "MSSQL");
OPI_TestDataRetrieval.Check_AddIn(Connection, "AddIn.OPI_MSSQL.Main");
OPI_MSSQL.DeleteDatabase("test1", Connection);
Result = OPI_MSSQL.CreateDatabase("test1", Connection);
OPI_TestDataRetrieval.WriteLog(Result, "CreateConnection (base)", "MSSQL");

View File

@@ -282,7 +282,17 @@ EndFunction
// Map Of KeyAndValue - Result of query execution
Function DeleteDatabase(Val Base, Val Connection = "", Val Tls = "") Export
Result = OPI_SQLQueries.DeleteDatabase(OPI_MSSQL, Base, Connection, Tls);
OPI_TypeConversion.GetLine(Base);
RequestTemplate = "USE master;
|ALTER DATABASE [%1]
|SET SINGLE_USER
|WITH ROLLBACK IMMEDIATE;
|DROP DATABASE [%1];";
QueryText = StrTemplate(RequestTemplate, Base);
Result = ExecuteSQLQuery(QueryText, , , Connection, Tls);
Return Result;
EndFunction

View File

@@ -23844,6 +23844,7 @@ Procedure MSSQL_CreateConnection(FunctionParameters)
OPI_TestDataRetrieval.WriteLog(Connection, "CreateConnection (before base)", "MSSQL");
OPI_TestDataRetrieval.Check_AddIn(Connection, "AddIn.OPI_MSSQL.Main");
OPI_MSSQL.DeleteDatabase("test1", Connection);
Result = OPI_MSSQL.CreateDatabase("test1", Connection);
OPI_TestDataRetrieval.WriteLog(Result, "CreateConnection (base)", "MSSQL");

View File

@@ -282,7 +282,17 @@
// Соответствие Из КлючИЗначение - Результат выполнения запроса
Функция УдалитьБазуДанных(Знач База, Знач Соединение = "", Знач Tls = "") Экспорт
Результат = OPI_ЗапросыSQL.УдалитьБазуДанных(OPI_MSSQL, База, Соединение, Tls);
OPI_ПреобразованиеТипов.ПолучитьСтроку(База);
ШаблонЗапроса = "USE master;
|ALTER DATABASE [%1]
|SET SINGLE_USER
|WITH ROLLBACK IMMEDIATE;
|DROP DATABASE [%1];";
ТекстЗапроса = СтрШаблон(ШаблонЗапроса, База);
Результат = ВыполнитьЗапросSQL(ТекстЗапроса, , , Соединение, Tls);
Возврат Результат;
КонецФункции

View File

@@ -23844,6 +23844,7 @@
OPI_ПолучениеДанныхТестов.ЗаписатьЛог(Соединение, "ОткрытьСоединение (перед базой)", "MSSQL");
OPI_ПолучениеДанныхТестов.Проверка_Компонента(Соединение, "AddIn.OPI_MSSQL.Main");
OPI_MSSQL.УдалитьБазуДанных("test1", Соединение);
Результат = OPI_MSSQL.СоздатьБазуДанных("test1", Соединение);
OPI_ПолучениеДанныхТестов.ЗаписатьЛог(Результат, "ОткрытьСоединение (база)", "MSSQL");