Active Record Join Missing Base Table |
[eluser]praj[/eluser]
Hi, I'm on CodeIgniter 2.02, and curious about the SQL generated with the following code in the "file_model.php" that I've created: Code: $this->db->join('users', 'files.username = users.username', 'inner'); The last line displays the select statement produced: Code: SELECT * Why is the files table in brackets -- (`files`)? I would have expected the SQL to look like this (without the brackets): Code: SELECT *
[eluser]danmontgomery[/eluser]
https://bitbucket.org/ellislab/codeignit...php#cl-516 Code: /**
|
Welcome Guest, Not a member yet? Register Sign In |