From 08539f6eb9c3eebc99d43c51253e7174188c8175 Mon Sep 17 00:00:00 2001 From: "Guillaume (ioguix) de Rorthais" Date: Wed, 15 Oct 2008 17:45:45 -0400 Subject: [PATCH] Fix createFunction method for pg < 73 --- classes/database/Postgres.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/classes/database/Postgres.php b/classes/database/Postgres.php index e421be6f..51b6ff73 100755 --- a/classes/database/Postgres.php +++ b/classes/database/Postgres.php @@ -3816,10 +3816,12 @@ class Postgres extends ADODB_base { * @param $language The language the function is written for * @param $flags An array of optional flags * @param $setof True if it returns a set, false otherwise + * @param $rows number of rows planner should estimate will be returned + * @param $cost cost the planner should use in the function execution step * @param $replace (optional) True if OR REPLACE, false for normal * @return 0 success */ - function createFunction($funcname, $args, $returns, $definition, $language, $flags, $setof, $replace = false) { + function createFunction($funcname, $args, $returns, $definition, $language, $flags, $setof, $cost, $rows, $replace = false) { $this->fieldClean($funcname); $this->clean($args); $this->clean($language); -- 2.39.5