'DatabaseWrapper' object has no attribute 'pattern_ops' DJango 1.8.3

161 views
Skip to first unread message

Jose Paul

unread,
Dec 11, 2015, 5:37:29 AM12/11/15
to Django developers (Contributions to Django itself)
Getting the error below when I run DJango test  please let me know the reason behind this .Thanks You

=====================================================================
ERROR: test_patterns_escape (expressions.tests.ExpressionsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\IBM_ADMIN\PythonWorkspace\DJangoTestCases\src\DJangoTestCases\tests\expressions\tests.py", line 383, in test_patterns_escape
    ordered=False)
  File "C:\Python27\lib\site-packages\django\test\testcases.py", line 883, in assertQuerysetEqual
    items = six.moves.map(transform, qs)
  File "C:\Python27\lib\site-packages\django\db\models\query.py", line 162, in __iter__
    self._fetch_all()
  File "C:\Python27\lib\site-packages\django\db\models\query.py", line 965, in _fetch_all
    self._result_cache = list(self.iterator())
  File "C:\Python27\lib\site-packages\django\db\models\query.py", line 238, in iterator
    results = compiler.execute_sql()
  File "C:\Python27\lib\site-packages\django\db\models\sql\compiler.py", line 829, in execute_sql
    sql, params = self.as_sql()
  File "c:\python27\lib\site-packages\ibm_db_django-1.0.7-py2.7.egg\ibm_db_django\compiler.py", line 48, in as_sql
    return super( SQLCompiler, self ).as_sql( False, with_col_aliases )
  File "C:\Python27\lib\site-packages\django\db\models\sql\compiler.py", line 387, in as_sql
    where, w_params = self.compile(self.query.where)
  File "C:\Python27\lib\site-packages\django\db\models\sql\compiler.py", line 357, in compile
    sql, params = node.as_sql(self, self.connection)
  File "C:\Python27\lib\site-packages\django\db\models\sql\where.py", line 104, in as_sql
    sql, params = compiler.compile(child)
  File "C:\Python27\lib\site-packages\django\db\models\sql\compiler.py", line 357, in compile
    sql, params = node.as_sql(self, self.connection)
  File "C:\Python27\lib\site-packages\django\db\models\lookups.py", line 213, in as_sql
    rhs_sql = self.get_rhs_op(connection, rhs_sql)
  File "C:\Python27\lib\site-packages\django\db\models\lookups.py", line 325, in get_rhs_op
    pattern = connection.pattern_ops[self.lookup_name].format(connection.pattern_esc)
AttributeError: 'DatabaseWrapper' object has no attribute 'pattern_ops'

Florian Apolloner

unread,
Dec 11, 2015, 11:47:16 AM12/11/15
to Django developers (Contributions to Django itself)
ibm_db_django is not a supported database backend, please get in contact with IBM instead for a fix.

Cheers,
Florian
Reply all
Reply to author
Forward
0 new messages