예제 #1
0
파일: pgsql_engine.php 프로젝트: jsrxar/dto
 public static function RetrieveServerVersion(EngConnection $connection) {
     try {
         $versionString = $connection->ExecScalarSQL('SELECT version()');
         if ((preg_match("/(\d+)\.(\d+)/", $versionString, $matches)) && (count($matches) == 3)) {
             $connection->GetServerVersion()->SetMajor($matches[1]);
             $connection->GetServerVersion()->SetMinor($matches[2]);
         }
     } catch (Exception $e) {
     }
 }
예제 #2
0
 public function Execute(EngConnection $connection)
 {
     $this->GetCommandImp()->SetServerVersion($connection->GetServerVersion());
     $this->GetCommandImp()->ExecuteUpdateCommand($connection, $this);
 }
 public function Execute(EngConnection $connection)
 {
     $this->GetCommandImp()->SetServerVersion($connection->GetServerVersion());
     return $this->GetCommandImp()->ExecuteSelectCommand($connection, $this);
 }
예제 #4
0
 public static function RetrieveServerVersion(EngConnection $connection)
 {
     try {
         $values = array();
         $connection->ExecQueryToArray('EXEC master..xp_msver \'ProductVersion\'', $values);
         if (count($values) > 0) {
             $strVersion = $values[0]['Character_Value'];
             list($major, $minor) = explode('.', $strVersion);
             $connection->GetServerVersion()->SetMajor($major);
             $connection->GetServerVersion()->SetMinor($minor);
         }
     } catch (Exception $e) {
     }
 }