Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 authored October 18, 2005

Showing 1 changed file with 1 addition and 2 deletions. Show diff stats Hide diff stats

  1. 3  django/core/db/backends/ado_mssql.py
3  django/core/db/backends/ado_mssql.py
@@ -102,8 +102,7 @@ def get_limit_offset_sql(limit, offset=None):
102 102
     return sql
103 103
 
104 104
 def get_random_function_sql():
105  
-    # TODO: This is a guess. Make sure this is correct.
106  
-    return "RANDOM()"
  105
+    return "RAND()"
107 106
 
108 107
 def get_table_list(cursor):
109 108
     raise NotImplementedError

0 notes on commit 8863e5d

Please sign in to comment.
Something went wrong with that request. Please try again.