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

Update #4

Open
wants to merge 43 commits into
base: master
Choose a base branch
from
Open

Update #4

wants to merge 43 commits into from

Conversation

bbassett
Copy link
Contributor

@bbassett bbassett commented Nov 2, 2017

No description provided.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 0296f02 on update into ** on master**.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 34a432d on update into ** on master**.

@@ -51,8 +51,7 @@ defimpl Sonata.Postgres, for: Sonata.Manipulation.Insertion do
{nil, [], idx}
end
def fields(fields, opts, idx) do
{fields, params, idx} = Utils.list_to_sql(fields, opts, idx)
{["(", Utils.join(fields, ", "), ")"], params, idx}
{["(", Utils.join(fields, ", "), ")"], opts, idx}
Copy link
Contributor

Choose a reason for hiding this comment

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

you should be returning [] not opts

{nil, [], idx}
end
defp table_alias(alias, opts, idx) do
{[" AS ", Utils.escape(alias)], opts, idx}
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be [] instead of opts

{nil, [], idx}
end
defp table(table, opts, idx) when is_binary(table) do
{Utils.escape(table), opts, idx}
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be [] instead of opts

{nil, [], idx}
end
def fields(fields, opts, idx) do
{["(", Utils.join(fields, ", "), ")"], opts, idx}
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be [] instead of opts

{nil, [], idx}
end
defp table(table, opts, idx) when is_binary(table) or is_atom(table) do
{Utils.escape(table), opts, idx}
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be [] instead of opts

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling fbbd02c on update into ** on master**.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 4464006 on update into ** on master**.

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