Skip to content

Instantly share code, notes, and snippets.

@swooningfish
Created January 9, 2013 11:11
Show Gist options
  • Save swooningfish/4492377 to your computer and use it in GitHub Desktop.
Save swooningfish/4492377 to your computer and use it in GitHub Desktop.
This removes the db escaping of kohana 2.x
<?
$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