Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix createFunction method for pg < 73

(cherry picked from commit 08539f6)
  • Loading branch information...
commit 7264f965d152b4b17290bfbd798135e5807a7a35 1 parent 81766c7
@ioguix ioguix authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 classes/database/Postgres.php
View
4 classes/database/Postgres.php
@@ -3816,10 +3816,12 @@ function setFunction($function_oid, $funcname, $newname, $args, $returns, $defin
* @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);
Please sign in to comment.
Something went wrong with that request. Please try again.