test_get_decimal_property and test_set_decimal_property fail in PostgreSQL

Bug #848925 reported by Gavin Panella
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Storm
Fix Released
High
Thomas Herve

Bug Description

======================================================================
ERROR: test_get_decimal_property (tests.store.postgres.PostgresStoreTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/gavin/Launchpad/storm/trunk/tests/mocker.py", line 102, in test_method_wrapper
    result = test_method()
  File "/home/gavin/Launchpad/storm/trunk/tests/store/base.py", line 5760, in test_get_decimal_property
    money = self.store.get(Money, 10)
  File "/home/gavin/Launchpad/storm/trunk/storm/store.py", line 178, in get
    result = self._connection.execute(select)
  File "/home/gavin/Launchpad/storm/trunk/storm/databases/postgres.py", line 249, in execute
    return Connection.execute(self, statement, params, noresult)
  File "/home/gavin/Launchpad/storm/trunk/storm/database.py", line 238, in execute
    raw_cursor = self.raw_execute(statement, params)
  File "/home/gavin/Launchpad/storm/trunk/storm/databases/postgres.py", line 259, in raw_execute
    return Connection.raw_execute(self, statement, params)
  File "/home/gavin/Launchpad/storm/trunk/storm/database.py", line 322, in raw_execute
    self._check_disconnect(raw_cursor.execute, *args)
  File "/home/gavin/Launchpad/storm/trunk/storm/database.py", line 367, in _check_disconnect
    return function(*args, **kwargs)
ProgrammingError: syntax error at or near "`"
LINE 1: SELECT money.id, money.`value` FROM money WHERE money.id = 1...
                               ^

======================================================================
ERROR: test_set_decimal_property (tests.store.postgres.PostgresStoreTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/gavin/Launchpad/storm/trunk/tests/mocker.py", line 102, in test_method_wrapper
    result = test_method()
  File "/home/gavin/Launchpad/storm/trunk/tests/store/base.py", line 5764, in test_set_decimal_property
    money = self.store.get(Money, 10)
  File "/home/gavin/Launchpad/storm/trunk/storm/store.py", line 178, in get
    result = self._connection.execute(select)
  File "/home/gavin/Launchpad/storm/trunk/storm/databases/postgres.py", line 249, in execute
    return Connection.execute(self, statement, params, noresult)
  File "/home/gavin/Launchpad/storm/trunk/storm/database.py", line 238, in execute
    raw_cursor = self.raw_execute(statement, params)
  File "/home/gavin/Launchpad/storm/trunk/storm/databases/postgres.py", line 259, in raw_execute
    return Connection.raw_execute(self, statement, params)
  File "/home/gavin/Launchpad/storm/trunk/storm/database.py", line 322, in raw_execute
    self._check_disconnect(raw_cursor.execute, *args)
  File "/home/gavin/Launchpad/storm/trunk/storm/database.py", line 367, in _check_disconnect
    return function(*args, **kwargs)
ProgrammingError: syntax error at or near "`"
LINE 1: SELECT money.id, money.`value` FROM money WHERE money.id = 1...
                               ^

Related branches

Gavin Panella (allenap)
Changed in storm:
importance: Undecided → High
status: New → Triaged
Thomas Herve (therve)
Changed in storm:
assignee: nobody → Thomas Herve (therve)
milestone: none → 0.19
Thomas Herve (therve)
Changed in storm:
status: Triaged → Fix Committed
Barry Warsaw (barry)
Changed in storm:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.