Index: trunk/phase3/includes/db/DatabasePostgres.php |
— | — | @@ -791,26 +791,24 @@ |
792 | 792 | return wfTimestamp( TS_POSTGRES, $ts ); |
793 | 793 | } |
794 | 794 | |
795 | | - |
796 | 795 | /* |
797 | 796 | * Posted by cc[plus]php[at]c2se[dot]com on 25-Mar-2009 09:12 |
798 | 797 | * to http://www.php.net/manual/en/ref.pgsql.php |
799 | | - * |
800 | | - * Parsing a postgres array can be a tricky problem, he's my |
801 | | - * take on this, it handles multi-dimensional arrays plus |
802 | | - * escaping using a nasty regexp to determine the limits of each |
803 | | - * data-item. |
804 | 798 | * |
| 799 | + * Parsing a postgres array can be a tricky problem, he's my |
| 800 | + * take on this, it handles multi-dimensional arrays plus |
| 801 | + * escaping using a nasty regexp to determine the limits of each |
| 802 | + * data-item. |
| 803 | + * |
805 | 804 | * This should really be handled by PHP PostgreSQL module |
806 | 805 | * |
807 | 806 | * @since 1.20 |
808 | | - * @param text string: postgreql array returned in a text form like {a,b} |
809 | | - * @param output string |
810 | | - * @param limit int |
811 | | - * @param offset int |
| 807 | + * @param $text string: postgreql array returned in a text form like {a,b} |
| 808 | + * @param $output string |
| 809 | + * @param $limit int |
| 810 | + * @param $offset int |
812 | 811 | * @return string |
813 | 812 | */ |
814 | | - |
815 | 813 | function pg_array_parse( $text, &$output, $limit = false, $offset = 1 ) { |
816 | 814 | if( false === $limit ) { |
817 | 815 | $limit = strlen( $text )-1; |
— | — | @@ -895,14 +893,14 @@ |
896 | 894 | return explode(",", $row[0]); |
897 | 895 | } |
898 | 896 | |
899 | | - function setSearchPath( $search_path ) { |
900 | 897 | /** |
901 | 898 | * Update search_path, values should already be sanitized |
902 | 899 | * Values may contain magic keywords like "$user" |
903 | 900 | * @since 1.20 |
904 | 901 | * |
905 | | - * @param array list of schemas to be searched by default |
| 902 | + * @param $search_path array list of schemas to be searched by default |
906 | 903 | */ |
| 904 | + function setSearchPath( $search_path ) { |
907 | 905 | $this->query( "SET search_path = " . implode(", ", $search_path) ); |
908 | 906 | } |
909 | 907 | |