Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix gis functions #192

Closed
wants to merge 6 commits into from
Closed

Fix gis functions #192

wants to merge 6 commits into from

Conversation

leoleopon
Copy link
Contributor

No description provided.

/// <param name="identifier">Identifier in query.</param>
/// <param name="generateSqlSelectFlag">A flag, indicating that a call is made from GenerateSQLSelect() method.</param>
/// <returns>Identifier with brackets.</returns>
protected string PutIdentifierIntoBrackets(string identifier, bool generateSqlSelectFlag)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generateSqlSelectFlag - тут нарушена логика уровня ответственности: функция должна быть самодостаточной и ей не нужно знать откуда её вызывают. Если нужен параметр, который как-то меняет поведение функции, то и назови его так, чтобы было понятно что внутри функции "переключится".

@@ -907,6 +880,7 @@ public override void GenerateSQLRowNumber(LoadingCustomizationStruct customizati
else if (string.IsNullOrEmpty(orderByExprForPaging))
{
orderByExprForPaging = $"{nl}ORDER BY {SQLWhereLanguageDef.StormMainObjectKey}";
query += orderByExprForPaging;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Почему так?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#191 вернуть как было.

Copy link
Contributor

@NicholasNoise NicholasNoise left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Даёшь тесты геометрии

@@ -907,6 +880,7 @@ public override void GenerateSQLRowNumber(LoadingCustomizationStruct customizati
else if (string.IsNullOrEmpty(orderByExprForPaging))
{
orderByExprForPaging = $"{nl}ORDER BY {SQLWhereLanguageDef.StormMainObjectKey}";
query += orderByExprForPaging;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#191 вернуть как было.

@leoleopon leoleopon closed this Jul 20, 2021
@leoleopon leoleopon deleted the fix-gis-functions branch July 20, 2021 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants