Example #1
0
 /**
  * isPgVersionAtLeast
  *
  * Return true if the server version meets client expectations.
  *
  * @access public
  * @param  string   $version
  * @param  Session  $session
  * @return bool
  */
 public function isPgVersionAtLeast($version, Session $session)
 {
     $current_version = $session->getInspector()->getVersion();
     return (bool) (version_compare($version, $current_version) <= 0);
 }