Skip to content

Bug fix in NpgsqlQuerySqlGenerator with PgFunctionExpression#425

Merged
roji merged 1 commit intonpgsql:devfrom
austindrenski:pgfunction-patch
May 25, 2018
Merged

Bug fix in NpgsqlQuerySqlGenerator with PgFunctionExpression#425
roji merged 1 commit intonpgsql:devfrom
austindrenski:pgfunction-patch

Conversation

@austindrenski
Copy link
Contributor

Bug

PgFunction("abbrev", typeof(string), new [] { inetExpression }) 
// where inetExpression is something like x => x.Inet
-- before:
SELECT abbrev(x."Inet", );

-- after:
SELECT abbrev(x."Inet");

Other

Also includes general cleanup to match project style, remove unused using-statements, etc.

- Bug:
  - Input:  PgFunction("abbrev", typeof(string), new [] { inetExpression }) // x.Inet
  - Before: abbrev("x"."Inet",)
  - After:  abbrev("x"."Inet")

- Also includes general cleanup to match project style, remove unused using-statements, etc.
austindrenski added a commit to austindrenski/npgsql-efcore.pg that referenced this pull request May 25, 2018
- Maps cidr and inet functions to CLR extension methods.
  - See: https://www.postgresql.org/docs/current/static/functions-net.html#CIDR-INET-FUNCTIONS-TABLE

- Includes functional tests covering translation.

- Includes the bug fix in npgsql#425.
  - This can be removed once npgsql#425 is merged.
@roji roji merged commit c1abc10 into npgsql:dev May 25, 2018
@roji
Copy link
Member

roji commented May 25, 2018

Thanks! That was quite a silly bug on my part...

@austindrenski austindrenski deleted the pgfunction-patch branch May 25, 2018 16:44
austindrenski added a commit to austindrenski/npgsql-efcore.pg that referenced this pull request May 25, 2018
- Maps cidr and inet functions to CLR extension methods.
  - See: https://www.postgresql.org/docs/current/static/functions-net.html#CIDR-INET-FUNCTIONS-TABLE

- Includes functional tests covering translation.

- Includes the bug fix in npgsql#425.
  - This can be removed once npgsql#425 is merged.
austindrenski added a commit to austindrenski/npgsql-efcore.pg that referenced this pull request May 26, 2018
- Maps cidr and inet functions to CLR extension methods.
  - See: https://www.postgresql.org/docs/current/static/functions-net.html#CIDR-INET-FUNCTIONS-TABLE

- Includes functional tests covering translation.

- Includes the bug fix in npgsql#425.
  - This can be removed once npgsql#425 is merged.
austindrenski added a commit to austindrenski/npgsql-efcore.pg that referenced this pull request May 27, 2018
- Maps cidr and inet functions to CLR extension methods.
  - See: https://www.postgresql.org/docs/current/static/functions-net.html#CIDR-INET-FUNCTIONS-TABLE

- Includes functional tests covering translation.

- Includes the bug fix in npgsql#425.
  - This can be removed once npgsql#425 is merged.
austindrenski added a commit to austindrenski/npgsql-efcore.pg that referenced this pull request May 29, 2018
- Maps cidr and inet functions to CLR extension methods.
  - See: https://www.postgresql.org/docs/current/static/functions-net.html#CIDR-INET-FUNCTIONS-TABLE

- Includes functional tests covering translation.

- Includes the bug fix in npgsql#425.
  - This can be removed once npgsql#425 is merged.
austindrenski added a commit to austindrenski/npgsql-efcore.pg that referenced this pull request May 29, 2018
- Maps cidr and inet functions to CLR extension methods.
  - See: https://www.postgresql.org/docs/current/static/functions-net.html#CIDR-INET-FUNCTIONS-TABLE

- Includes functional tests covering translation.

- Includes the bug fix in npgsql#425.
  - This can be removed once npgsql#425 is merged.
austindrenski added a commit to austindrenski/npgsql-efcore.pg that referenced this pull request May 31, 2018
- Maps cidr and inet functions to CLR extension methods.
  - See: https://www.postgresql.org/docs/current/static/functions-net.html#CIDR-INET-FUNCTIONS-TABLE

- Includes functional tests covering translation.

- Includes the bug fix in npgsql#425.
  - This can be removed once npgsql#425 is merged.
austindrenski added a commit to austindrenski/npgsql-efcore.pg that referenced this pull request Jun 3, 2018
- Maps cidr and inet functions to CLR extension methods.
  - See: https://www.postgresql.org/docs/current/static/functions-net.html#CIDR-INET-FUNCTIONS-TABLE

- Includes functional tests covering translation.

- Includes the bug fix in npgsql#425.
  - This can be removed once npgsql#425 is merged.
austindrenski added a commit to austindrenski/npgsql-efcore.pg that referenced this pull request Jul 15, 2018
- Maps cidr and inet functions to CLR extension methods.
  - See: https://www.postgresql.org/docs/current/static/functions-net.html#CIDR-INET-FUNCTIONS-TABLE

- Includes functional tests covering translation.

- Includes the bug fix in npgsql#425.
  - This can be removed once npgsql#425 is merged.
austindrenski added a commit to austindrenski/npgsql-efcore.pg that referenced this pull request Jul 21, 2018
- Maps cidr and inet functions to CLR extension methods.
  - See: https://www.postgresql.org/docs/current/static/functions-net.html#CIDR-INET-FUNCTIONS-TABLE

- Includes functional tests covering translation.

- Includes the bug fix in npgsql#425.
  - This can be removed once npgsql#425 is merged.
austindrenski added a commit to austindrenski/npgsql-efcore.pg that referenced this pull request Jul 22, 2018
- Maps cidr and inet functions to CLR extension methods.
  - See: https://www.postgresql.org/docs/current/static/functions-net.html#CIDR-INET-FUNCTIONS-TABLE

- Includes functional tests covering translation.

- Includes the bug fix in npgsql#425.
  - This can be removed once npgsql#425 is merged.
austindrenski added a commit to austindrenski/npgsql-efcore.pg that referenced this pull request Jul 22, 2018
- Maps cidr and inet functions to CLR extension methods.
  - See: https://www.postgresql.org/docs/current/static/functions-net.html#CIDR-INET-FUNCTIONS-TABLE

- Includes functional tests covering translation.

- Includes the bug fix in npgsql#425.
  - This can be removed once npgsql#425 is merged.
@austindrenski austindrenski self-assigned this Aug 16, 2018
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.

2 participants