Changes between Initial Version and Version 1 of Ticket #25947


Ignore:
Timestamp:
Dec 17, 2015, 12:15:53 PM (8 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 UncategorizedDatabase layer (models, ORM)
    • Property Triage Stage UnreviewedAccepted
    • Property Summary Query's str() method fails when default Database has no parametersQuery's str() method fails when 'default' database is empty
    • Property Type UncategorizedBug
  • 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