Skip to content

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**.

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.

4 participants