Created
January 9, 2013 11:11
-
-
Save swooningfish/4492377 to your computer and use it in GitHub Desktop.
This removes the db escaping of kohana 2.x
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
$config = Kohana::config('database.default'); | |
$config['escape'] = FALSE; | |
$db = new Database($config); | |
$db->select("DISTINCT CONCAT(city, state, country) location"); | |
// .. run query stuff.. | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment