Skip to content

Commit

Permalink
Fixed #6157: Random answer order doesn't work with postgresql
Browse files Browse the repository at this point in the history
dev: forgot some breaks
  • Loading branch information
mennodekker committed Jun 1, 2012
1 parent 70ace73 commit baabd42
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions application/helpers/database_helper.php
Expand Up @@ -158,10 +158,12 @@ function dbRandom()

case 'pgsql':
$srandom='RANDOM()';
break;

case 'mysql':
case 'mysqli':
$srandom='RAND()';
break;

default:
//Some db type that is not mentioned above, could fail and if so should get an entry above.
Expand Down

0 comments on commit baabd42

Please sign in to comment.