mirror of
https://github.com/silverstripe/silverstripe-mssql
synced 2024-10-22 08:05:53 +02:00
BUGFIX Added missing MSSQLDatabase::random() method
This commit is contained in:
parent
bdddbc61a5
commit
91ee7ca80d
@ -1081,6 +1081,13 @@ class MSSQLDatabase extends Database {
|
||||
return 'CURRENT_TIMESTAMP';
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the database-specific version of the random() function
|
||||
*/
|
||||
function random(){
|
||||
return 'RAND()';
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert a SQLQuery object into a SQL statement.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user