@@ -697,9 +697,11 @@ public function processLimit($query, $limit, $offset = 0)
697697 }
698698
699699 /**
700- * Add to the current date and time in Postgresql.
700+ * Add to the current date and time.
701+ *
701702 * Usage:
702703 * $query->select($query->dateAdd());
704+ *
703705 * Prefixing the interval with a - (negative sign) will cause subtraction to be used.
704706 *
705707 * @param datetime $date The date to add to
@@ -709,7 +711,6 @@ public function processLimit($query, $limit, $offset = 0)
709711 * @return string The string with the appropriate sql for addition of dates
710712 *
711713 * @since __DEPLOY_VERSION__
712- * @note Not all drivers support all units. Check appropriate references
713714 * @link http://www.postgresql.org/docs/9.0/static/functions-datetime.html.
714715 */
715716 public function dateAdd ($ date , $ interval , $ datePart )
@@ -725,16 +726,14 @@ public function dateAdd($date, $interval, $datePart)
725726 }
726727
727728 /**
728- * Return correct regexp operator for Postgresql.
729- *
730- * Ensure that the regexp operator is Postgresql compatible.
729+ * Get the regular expression operator
731730 *
732731 * Usage:
733732 * $query->where('field ' . $query->regexp($search));
734733 *
735734 * @param string $value The regex pattern.
736735 *
737- * @return string Returns the regex operator.
736+ * @return string
738737 *
739738 * @since __DEPLOY_VERSION__
740739 */
@@ -744,18 +743,16 @@ public function regexp($value)
744743 }
745744
746745 /**
747- * Return correct rand() function for Postgresql.
746+ * Get the function to return a random floating-point value
748747 *
749- * Ensure that the rand() function is Postgresql compatible.
750- *
751748 * Usage:
752- * $query->Rand ();
753- *
754- * @return string The correct rand function.
749+ * $query->rand ();
750+ *
751+ * @return string
755752 *
756753 * @since __DEPLOY_VERSION__
757754 */
758- public function Rand ()
755+ public function rand ()
759756 {
760757 return ' RANDOM() ' ;
761758 }
@@ -769,10 +766,9 @@ public function Rand()
769766 * $query->findInSet((int) $parent->id, 'a.assigned_cat_ids')
770767 *
771768 * @param string $value The value to search for.
772- *
773769 * @param string $set The set of values.
774770 *
775- * @return string Returns the find_in_set() postgresql translation .
771+ * @return string A representation of the MySQL find_in_set() function for the driver .
776772 *
777773 * @since __DEPLOY_VERSION__
778774 */
0 commit comments