Fix unsupported RIGHT JOIN in sqlite3.
Merge remote-tracking branch 'origin/master'