-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: master
Are you sure you want to change the base?
Conversation
Changes Unknown when pulling 0296f02 on update into ** on master**. |
Changes Unknown when pulling 34a432d on update into ** on master**. |
lib/sonata/manipulation/insertion.ex
Outdated
@@ -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} |
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.
you should be returning []
not opts
lib/sonata/manipulation/update.ex
Outdated
{nil, [], idx} | ||
end | ||
defp table_alias(alias, opts, idx) do | ||
{[" AS ", Utils.escape(alias)], opts, idx} |
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.
this should be []
instead of opts
lib/sonata/manipulation/update.ex
Outdated
{nil, [], idx} | ||
end | ||
defp table(table, opts, idx) when is_binary(table) do | ||
{Utils.escape(table), opts, idx} |
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.
this should be []
instead of opts
lib/sonata/manipulation/insertion.ex
Outdated
{nil, [], idx} | ||
end | ||
def fields(fields, opts, idx) do | ||
{["(", Utils.join(fields, ", "), ")"], opts, idx} |
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.
this should be []
instead of opts
lib/sonata/manipulation/insertion.ex
Outdated
{nil, [], idx} | ||
end | ||
defp table(table, opts, idx) when is_binary(table) or is_atom(table) do | ||
{Utils.escape(table), opts, idx} |
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.
this should be []
instead of opts
Changes Unknown when pulling fbbd02c on update into ** on master**. |
Changes Unknown when pulling 4464006 on update into ** on master**. |
No description provided.