Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14343

Query builder escaping periods when using TableName.Column

$
0
0
Hey!

In my query, I'm using the "TableName.ColumnName" syntax to designate a specific column.
Unfortunately, when using the query builder, the period in those parts is getting escaped, forming the following:
"`TableName`.`ColumnName`"
Which obviously throws a SQL Error.

Is there a way to solve this other than turning off QueryBuilder's "automatic SQL Injection prevention" (Which is pretty much my top reason for using Query Builder. Otherwise I could just build the query string on my own.)?
(The solution of turning off QueryBuilder's automatic escaping was posted on StackOverflow)

Thank you very much!

Viewing all articles
Browse latest Browse all 14343

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>