system/Database/Postgre/PreparedQuery.php
public function parameterize(string $sql): string
	{
		// Track our current value
		$count = 0;

		$sql = preg_replace_callback('/\?/', function ($matches) use (&$count) {
			$count ++;
			return "\${$count}";
		}, $sql);

		return $sql;
	}
public function parameterize(string $sql): string
	{
		// Track our current value
		$count = 0;

		$sql = preg_replace_callback('/\?/', function ($matches) use (&$count) {
			$count ++;
			return "\${$count}";
		}, $sql);

		return $sql;
	}
Replaces the ? placeholders with $1, $2, etc parameters for use
within the prepared query.

@param string $sql

@return string