activerecord escaping dot (.) values even if it is turned off #1751

Closed
alioygur opened this Issue Aug 31, 2012 · 2 comments

Projects

None yet

2 participants

im turning off escaping.

$this->db
->select("
SQL_CALC_FOUND_ROWS
p.*,
IFNULL((SELECT source FROM _product_image WHERE relation_id = p.id AND default = '1'), 'upload/nophoto.png') AS image
", FALSE)

but ci rendering bellow query

SELECT SQL_CALC_FOUND_ROWS p.*, IFNULL((SELECT source FROM _product_image WHERE relation_id = p.id AND default = '1'), _'upload/nophoto.png') AS image FROM (_product AS p) WHERE p.id = '2'

that it 'upload/nophoto.png' becomes _'upload/nophoto.png'

Contributor
narfbg commented Oct 5, 2012

How exactly do you turn off escaping?
And which CI version are you using?
Does it happen with code from the develop branch here on the repository?

Contributor
narfbg commented Nov 6, 2012

This has more to do with the Upload class, see #1380.

@narfbg narfbg closed this Nov 6, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment