Fix createFunction method for pg < 73
authorGuillaume (ioguix) de Rorthais <ioguix@free.fr>
Wed, 15 Oct 2008 21:45:45 +0000 (17:45 -0400)
committerGuillaume (ioguix) de Rorthais <ioguix@free.fr>
Wed, 15 Oct 2008 21:45:45 +0000 (17:45 -0400)
classes/database/Postgres.php

index e421be6fab505f0212062cab8fb61fef003f1883..51b6ff7364d99a3b470c7fb7d223b6b9d7ffe4b6 100755 (executable)
@@ -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);