From a09e38490a9752cc08698168376018b3a74291e1 Mon Sep 17 00:00:00 2001 From: Kirill Kurdyukov Date: Mon, 16 Sep 2024 14:47:53 +0300 Subject: [PATCH] dev: run examples on stable version --- .github/workflows/tests.yml | 9 +++++++-- examples/src/AdoNet/Program.cs | 4 ++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1b9d017..8fcf595 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,6 +5,10 @@ on: - main pull_request: workflow_dispatch: + # For detect flaky tests + schedule: + - cron: "45 * * * *" + jobs: unit-tests: strategy: @@ -35,7 +39,7 @@ jobs: strategy: fail-fast: false matrix: - ydb-version: [trunk] + ydb-version: [ 'trunk' ] dotnet-version: [6.0.x, 7.0.x] include: - dotnet-version: 6.0.x @@ -52,6 +56,7 @@ jobs: env: YDB_LOCAL_SURVIVE_RESTART: true YDB_USE_IN_MEMORY_PDISKS: true + YDB_TABLE_ENABLE_PREPARED_DDL: true options: '--name ydb-local -h localhost' env: OS: ubuntu-22.04 @@ -76,7 +81,7 @@ jobs: strategy: fail-fast: false matrix: - ydb-version: [ trunk ] + ydb-version: [ 'latest', '24.1' ] dotnet-version: [ 6.0.x, 7.0.x ] include: - dotnet-version: 6.0.x diff --git a/examples/src/AdoNet/Program.cs b/examples/src/AdoNet/Program.cs index a838237..c0e3b53 100644 --- a/examples/src/AdoNet/Program.cs +++ b/examples/src/AdoNet/Program.cs @@ -199,6 +199,10 @@ private async Task SelectWithParameters() var ydbCommand = connection.CreateCommand(); ydbCommand.CommandText = """ + DECLARE $series_id AS Uint64; + DECLARE $season_id AS Uint64; + DECLARE $limit_size AS Uint64; + SELECT series_id, season_id,