From 91ee7ca80deea681c03e602e3b8aa418f094b4f5 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Thu, 17 Sep 2009 07:07:02 +0000 Subject: [PATCH] BUGFIX Added missing MSSQLDatabase::random() method --- code/MSSQLDatabase.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/MSSQLDatabase.php b/code/MSSQLDatabase.php index 3144e39..0e7f4c4 100644 --- a/code/MSSQLDatabase.php +++ b/code/MSSQLDatabase.php @@ -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. */