public function getQuery($new = false, $asObj = false)
	{
		if ($new)
		{
			// Make sure we have a query class for this driver.
			if (!class_exists('\\Joomla\\Database\\Postgresql\\PostgresqlQuery'))
			{
				throw new UnsupportedAdapterException('\\Joomla\\Database\\Postgresql\\PostgresqlQuery Class not found.');
			}

			$this->queryObject = new PostgresqlQuery($this);

			return $this->queryObject;
		}

		if ($asObj)
		{
			return $this->queryObject;
		}

		return $this->sql;
	}