您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

QuerySet.query中潜在的Django错误?

QuerySet.query中潜在的Django错误?

好的,我只是想通了。这不是错误。浏览django / db / models / sql / query.py的源代码

160     def __str__(self):
161         """
162         Returns the query as a string of sql with the parameter values
163         substituted in.
164 
165         Parameter values won't necessarily be quoted correctly, since that is
166         done by the database interface at execution time.
167         """
168         sql, params = self.get_compiler(DEFAULT_DB_ALIAS).as_sql()
169         return sql % params

http://code.djangoproject.com/browser/django/trunk/django/db/models/sql/query.py

一切正常。:)

Go 2022/1/1 18:36:48 有345人围观

撰写回答


你尚未登录,登录后可以

和开发者交流问题的细节

关注并接收问题和回答的更新提醒

参与内容的编辑和改进,让解决方法与时俱进

请先登录

推荐问题


联系我
置顶