Skip to content

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