diff options
Diffstat (limited to 'phpBB/includes/db/postgres.php')
| -rw-r--r-- | phpBB/includes/db/postgres.php | 18 | 
1 files changed, 16 insertions, 2 deletions
| diff --git a/phpBB/includes/db/postgres.php b/phpBB/includes/db/postgres.php index bb116e0763..959d8df139 100644 --- a/phpBB/includes/db/postgres.php +++ b/phpBB/includes/db/postgres.php @@ -389,6 +389,22 @@ class dbal_postgres extends dbal  	}  	/** +	* @inheritdoc +	*/ +	function cast_expr_to_bigint($expression) +	{ +		return 'CAST(' . $expression . ' as DECIMAL(255, 0))'; +	} + +	/** +	* @inheritdoc +	*/ +	function cast_expr_to_string($expression) +	{ +		return 'CAST(' . $expression . ' as VARCHAR(255))'; +	} + +	/**  	* return sql error array  	* @access private  	*/ @@ -481,5 +497,3 @@ class dbal_postgres extends dbal  		}  	}  } - -?>
\ No newline at end of file | 
