question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why is this happening?

> knex('foo as f').innerJoin('bar as f').toString();
'select * from "foo" as "f" inner join "bar" as "f"'
> knex('foo as f').innerJoin('bar as f').update({a: 'b'}).toString();
'update "foo" as "f" set "a" = \'b\''

I’d expect the join to be there. I’m prettier sure this used to work with 0.11.x

Might be related to https://github.com/tgriesser/knex/issues/557

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
RWOverdijkcommented, Mar 24, 2017

So why close this issue? We can add support for it as it’s a perfectly plausible use case.

1reaction
elhigucommented, Feb 20, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

SQL Server UPDATE JOIN Explained By Practical Examples
SQL Server UPDATE JOIN syntax · First, specify the name of the table (t1) that you want to update in the UPDATE clause....
Read more >
How can I do an UPDATE statement with JOIN in SQL ...
How can I do an UPDATE statement with JOIN in SQL Server? · 1. some relations between the tables? · How can you...
Read more >
SQL | UPDATE with JOIN
SQL UPDATE JOIN could be used to update one table using another table and join condition. ... UPDATE tablename INNER JOIN tablename ON...
Read more >
SQL UPDATE with JOIN | Examples
An UPDATE statement can include JOIN operations. An UPDATE can contain zero, one, or multiple JOIN operations. The UPDATE affects records that satisfy...
Read more >
SQL UPDATE with JOIN
SQL UPDATE JOIN means we will update one table using another table and join condition. Let us take an example of a customer...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found