Welcome Guest, Not a member yet? Register   Sign In
Miss handling of the Star ( * ) char in DB_driver
#1

[eluser]Xeoncross[/eluser]
CodeIgniter 1.7.0 doesn't seem to be handling '*' right. I see it is still defined in the DB_driver file - but it is ignoring it.

Code:
var $_reserved_identifiers    = array('*'); // Identifiers that should NOT be escaped

I get the following error
Code:
Unknown column 'ci_topics.*' in 'field list'

SELECT `ci_topics`.`*`, `ci_users`.`email`, `ci_users`.`username` FROM.........

As you can see - it is not skipping the star char when it adds the back ticks. When I remove the ticks around the star and run the query in PHPMyAdmin it works fine.

Code:
SELECT `ci_topics`.*, `ci_users`.`email`, `ci_users`.`username` FROM.........


Messages In This Thread
Miss handling of the Star ( * ) char in DB_driver - by El Forum - 10-23-2008, 09:13 PM
Miss handling of the Star ( * ) char in DB_driver - by El Forum - 10-23-2008, 09:26 PM
Miss handling of the Star ( * ) char in DB_driver - by El Forum - 10-24-2008, 01:38 AM
Miss handling of the Star ( * ) char in DB_driver - by El Forum - 10-24-2008, 07:34 AM
Miss handling of the Star ( * ) char in DB_driver - by El Forum - 10-24-2008, 10:17 AM
Miss handling of the Star ( * ) char in DB_driver - by El Forum - 10-24-2008, 11:26 AM
Miss handling of the Star ( * ) char in DB_driver - by El Forum - 10-26-2008, 03:03 PM
Miss handling of the Star ( * ) char in DB_driver - by El Forum - 11-06-2008, 05:48 PM
Miss handling of the Star ( * ) char in DB_driver - by El Forum - 12-16-2008, 09:08 PM
Miss handling of the Star ( * ) char in DB_driver - by El Forum - 01-17-2009, 07:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB