https://www.mediawiki.org/wiki/Special:Code/MediaWiki/113499
Revision: 113499
Author: reedy
Date: 2012-03-09 18:55:12 +0000 (Fri, 09 Mar 2012)
Log Message:
-----------
Fix up some documentation weirdness from r113487
Modified Paths:
--------------
trunk/phase3/includes/db/DatabasePostgres.php
Modified: trunk/phase3/includes/db/DatabasePostgres.php
===================================================================
--- trunk/phase3/includes/db/DatabasePostgres.php 2012-03-09 18:52:31 UTC
(rev 113498)
+++ trunk/phase3/includes/db/DatabasePostgres.php 2012-03-09 18:55:12 UTC
(rev 113499)
@@ -791,26 +791,24 @@
return wfTimestamp( TS_POSTGRES, $ts );
}
-
/*
* Posted by cc[plus]php[at]c2se[dot]com on 25-Mar-2009 09:12
* to http://www.php.net/manual/en/ref.pgsql.php
- *
- * Parsing a postgres array can be a tricky problem, he's my
- * take on this, it handles multi-dimensional arrays plus
- * escaping using a nasty regexp to determine the limits of each
- * data-item.
*
+ * Parsing a postgres array can be a tricky problem, he's my
+ * take on this, it handles multi-dimensional arrays plus
+ * escaping using a nasty regexp to determine the limits of each
+ * data-item.
+ *
* This should really be handled by PHP PostgreSQL module
*
* @since 1.20
- * @param text string: postgreql array returned in a text form like
{a,b}
- * @param output string
- * @param limit int
- * @param offset int
+ * @param $text string: postgreql array returned in a text form like
{a,b}
+ * @param $output string
+ * @param $limit int
+ * @param $offset int
* @return string
*/
-
function pg_array_parse( $text, &$output, $limit = false, $offset = 1 )
{
if( false === $limit ) {
$limit = strlen( $text )-1;
@@ -895,14 +893,14 @@
return explode(",", $row[0]);
}
- function setSearchPath( $search_path ) {
/**
* Update search_path, values should already be sanitized
* Values may contain magic keywords like "$user"
* @since 1.20
*
- * @param array list of schemas to be searched by default
+ * @param $search_path array list of schemas to be searched by default
*/
+ function setSearchPath( $search_path ) {
$this->query( "SET search_path = " . implode(", ",
$search_path) );
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs