Changes between Initial Version and Version 1 of Ticket #25947


Ignore:
Timestamp:
12/17/15 18:15:53 (7 years ago)
Author:
Tim Graham
Comment:

I guess this might be tricky to fix for reasons similar to this comment in the file: "We need to use DEFAULT_DB_ALIAS here, as QuerySet does not have (nor should it have) knowledge of which connection is going to be used."

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25947

    • Property Component changed from Uncategorized to Database layer (models, ORM)
    • Property Triage Stage changed from Unreviewed to Accepted
    • Property Type changed from Uncategorized to Bug
    • Property Summary changed from Query's str() method fails when default Database has no parameters to Query's str() method fails when 'default' database is empty
  • Ticket #25947 – Description

    initial v1  
    7979{{{
    8080def sql_with_params(self):
    81         """
    82         Returns the query as an SQL string and the parameters that will be
    83         substituted into the query.
    84         """
    85         return self.get_compiler(DEFAULT_DB_ALIAS).as_sql()
     81    """
     82    Returns the query as an SQL string and the parameters that will be
     83    substituted into the query.
     84    """
     85    return self.get_compiler(DEFAULT_DB_ALIAS).as_sql()
    8686}}}
Back to Top