Skip to content

Commit

Permalink
Fix test (#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeAlhayek authored Dec 6, 2023
1 parent abeff48 commit 4dfac88
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: PR Check
on:

pull_request:
branches: [ main ]
branches: [ main, release/** ]
paths-ignore:
- '**.md'

Expand Down
16 changes: 9 additions & 7 deletions test/YesSql.Tests/CoreTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6196,10 +6196,11 @@ await session.SaveAsync(new Article
var dialect = _store.Configuration.SqlDialect;

var sqlBuilder = new SqlBuilder(TablePrefix, dialect);
var documentTable = _store.Configuration.TableNameConvention.GetDocumentTable("");

sqlBuilder.AddSelector("count(1)");
sqlBuilder.Table("document", "d", _store.Configuration.Schema);
sqlBuilder.LeftJoin(nameof(ArticleByPublishedDate), "a", "DocumentId", "document", "Id", _store.Configuration.Schema, "a", "d");
sqlBuilder.Table(documentTable, "d", _store.Configuration.Schema);
sqlBuilder.LeftJoin(nameof(ArticleByPublishedDate), "a", "DocumentId", documentTable, "Id", _store.Configuration.Schema, "a", "d");

var query = sqlBuilder.ToSqlString();

Expand Down Expand Up @@ -6238,10 +6239,10 @@ await session.SaveAsync(new Article
var dialect = _store.Configuration.SqlDialect;

var sqlBuilder = new SqlBuilder(TablePrefix, dialect);

var documentTable = _store.Configuration.TableNameConvention.GetDocumentTable("");
sqlBuilder.AddSelector("count(1)");
sqlBuilder.Table("document", "d", _store.Configuration.Schema);
sqlBuilder.RightJoin(nameof(ArticleByPublishedDate), "a", "DocumentId", "document", "Id", _store.Configuration.Schema, "a", "d");
sqlBuilder.Table(documentTable, "d", _store.Configuration.Schema);
sqlBuilder.RightJoin(nameof(ArticleByPublishedDate), "a", "DocumentId", documentTable, "Id", _store.Configuration.Schema, "a", "d");

var query = sqlBuilder.ToSqlString();

Expand Down Expand Up @@ -6281,10 +6282,11 @@ await session.SaveAsync(new Article
var dialect = _store.Configuration.SqlDialect;

var sqlBuilder = new SqlBuilder(TablePrefix, dialect);
var documentTable = _store.Configuration.TableNameConvention.GetDocumentTable("");

sqlBuilder.AddSelector("count(1)");
sqlBuilder.Table("document", "d", _store.Configuration.Schema);
sqlBuilder.InnerJoin(nameof(ArticleByPublishedDate), "a", "DocumentId", "document", "Id", _store.Configuration.Schema, "a", "d");
sqlBuilder.Table(documentTable, "d", _store.Configuration.Schema);
sqlBuilder.InnerJoin(nameof(ArticleByPublishedDate), "a", "DocumentId", documentTable, "Id", _store.Configuration.Schema, "a", "d");

var query = sqlBuilder.ToSqlString();

Expand Down

0 comments on commit 4dfac88

Please sign in to comment.