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); }
public function __construct($connectionParams) { parent::__construct($connectionParams); }
/** * @param EngConnection $connection * @param DeleteCommand $command * @return void */ public function ExecuteDeleteCommand($connection, $command) { $connection->ExecSQL($command->GetSQL()); }
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) { } }