-
Notifications
You must be signed in to change notification settings - Fork 11
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
Fix gis functions #192
Conversation
…plementation in PostgresDataService.
…LINQ gis-functions prototypes.
/// <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) |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Почему так?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#191 вернуть как было.
There was a problem hiding this 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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#191 вернуть как было.
No description provided.