src/Neevo/Drivers/pdo.php
public function randomizeOrder(BaseStatement $statement){
		switch($this->driverName){
			case 'mysql':
			case 'pgsql':
				$random = 'RAND()';

			case 'sqlite':
			case 'sqlite2':
				$random = 'RANDOM()';

			case 'odbc':
				$random = 'Rnd(id)';

			case 'oci':
				$random = 'dbms_random.value';

			case 'mssql':
				$random = 'NEWID()';
		}
		$statement->order($random);
	}
public function randomizeOrder(BaseStatement $statement){
		switch($this->driverName){
			case 'mysql':
			case 'pgsql':
				$random = 'RAND()';

			case 'sqlite':
			case 'sqlite2':
				$random = 'RANDOM()';

			case 'odbc':
				$random = 'Rnd(id)';

			case 'oci':
				$random = 'dbms_random.value';

			case 'mssql':
				$random = 'NEWID()';
		}
		$statement->order($random);
	}
public function randomizeOrder ( BaseStatement $ statement ) { switch ( $ this -> driverName ) { case 'mysql' : case 'pgsql' : $ random = 'RAND()' ; case 'sqlite' : case 'sqlite2' : $ random = 'RANDOM()' ; case 'odbc' : $ random = 'Rnd(id)' ; case 'oci' : $ random = 'dbms_random.value' ; case 'mssql' : $ random = 'NEWID()' ; } $ statement -> order ( $ random ) ; }
Randomizes result order.
@param BaseStatement $statement
Randomizes result order .