diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-10-18 14:02:46 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-10-18 14:02:46 +0000 |
| commit | 8863e5dd116faa25ce68c1733ac123199fbff2c5 (patch) | |
| tree | a2a4cbf6bee218a6521fbbd546f755357cce469e | |
| parent | b890e37adaea63be240f930bf6b7b5d4c9ab1395 (diff) | |
Changed get_random_function_sql for ado_mssql backend to use RAND(), which is correct. Thanks, Jakub Labath
git-svn-id: http://code.djangoproject.com/svn/django/trunk@936 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/core/db/backends/ado_mssql.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/django/core/db/backends/ado_mssql.py b/django/core/db/backends/ado_mssql.py index 944cf4b961..a13ac834b1 100644 --- a/django/core/db/backends/ado_mssql.py +++ b/django/core/db/backends/ado_mssql.py @@ -102,8 +102,7 @@ def get_limit_offset_sql(limit, offset=None): return sql def get_random_function_sql(): - # TODO: This is a guess. Make sure this is correct. - return "RANDOM()" + return "RAND()" def get_table_list(cursor): raise NotImplementedError |
