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

[#82] Added FROM clause to update builder #168

Open
wants to merge 1 commit into
base: v1
Choose a base branch
from

Conversation

sivagollapalli
Copy link
Contributor

@sivagollapalli sivagollapalli commented Dec 5, 2018

#82

@sivagollapalli
Copy link
Contributor Author

@lann Could you please let me know the comments?

func TestUpdateBuilderFromClause(t *testing.T) {
sql, _, err := Update("employees").Set("sales_count", 100).From("accounts").Where("accounts.name = ?", "ACME").ToSql()
assert.NoError(t, err)
assert.Equal(t, "UPDATE employees SET sales_count = ? WHERE accounts.name = ?", sql)
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't look right.

@teresa-recursion
Copy link

Is there another approach to get a FROM clause on an update? This still isn't working for me even though the referenced issue above is closed.

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