Welcome Guest, Not a member yet? Register   Sign In
CI.1.7 - $db->from() with $db->get()
#1

[eluser]Josip Jelic[/eluser]
I dont'n know if this is bug or new feature...

In Database Acrive record class using both $db->from("news") and $db->get("news", 10, 0) results in database error which wasn't the case in 1.6. It produces SELECT * FROM news, news which results in MySQL error: #1066 - Not unique table/alias: 'news'.

Is this expected behavior?

Documentation says:
Note: As shown earlier, the FROM portion of your query can be specified in the $this->db->get() function, so use whichever method you prefer.



Cheers


Messages In This Thread
CI.1.7 - $db->from() with $db->get() - by El Forum - 10-28-2008, 02:51 AM
CI.1.7 - $db->from() with $db->get() - by El Forum - 10-28-2008, 09:11 AM
CI.1.7 - $db->from() with $db->get() - by El Forum - 10-28-2008, 01:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB