Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 8863e5dd116faa25ce68c1733ac123199fbff2c5 1 parent b890e37
Adrian Holovaty adrianholovaty authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  django/core/db/backends/ado_mssql.py
3  django/core/db/backends/ado_mssql.py
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.