Skip to content

Commit

Permalink
Postgresql updated Join
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Rusev committed Jan 18, 2010
1 parent 2d270e4 commit 03e0ad7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Crystal/Query/Postgres/Join.php
Expand Up @@ -30,27 +30,27 @@ function __construct($method, $params)
switch ($method)
{
case 'left_join':
$this->join = "LEFT JOIN " . Crystal_Helper_Postgres::add_single_quote($params[0]) . " ON " . $params[1];
$this->join = " LEFT JOIN " . Crystal_Helper_Postgres::sanitize_string($params[0]) . " ON " . $params[1];
break;


case 'right_join':
$this->join = "RIGHT JOIN " . Crystal_Helper_Postgres::add_single_quote($params[0]) . " ON " . $params[1];
$this->join = " RIGHT JOIN " . Crystal_Helper_Postgres::sanitize_string($params[0]) . " ON " . $params[1];
break;


case 'outer_join':
$this->join = "OUTER JOIN " . Crystal_Helper_Postgres::add_single_quote($params[0]) . " ON " . $params[1];
$this->join = " OUTER JOIN " . Crystal_Helper_Postgres::sanitize_string($params[0]) . " ON " . $params[1];
break;


case 'inner_join':
$this->join = "INNER JOIN " . Crystal_Helper_Postgres::add_single_quote($params[0]) . " ON " . $params[1];
$this->join = " INNER JOIN " . Crystal_Helper_Postgres::sanitize_string($params[0]) . " ON " . $params[1];
break;


default:
$this->join = "JOIN " . Crystal_Helper_Postgres::add_single_quote($params[0]) . " ON " . $params[1];
$this->join = " JOIN " . Crystal_Helper_Postgres::sanitize_string($params[0]) . " ON " . $params[1];
break;
}

Expand Down

0 comments on commit 03e0ad7

Please sign in to comment.