Opened 11 years ago

Closed 11 years ago

#10474 closed (duplicate)

Changeset 10029 - syntax error at or near "RETURNING" at character 211

Reported by: Reto Aebersold Owned by: Malcolm Tredinnick
Component: Core (Other) Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


changeset:10029 introduces a syntax error (running Django in apache with mod_python):

Traceback (most recent call last):

  File "/usr/lib/python2.4/site-packages/django/core/handlers/", line 89, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/usr/lib/python2.4/site-packages/django/contrib/auth/", line 67, in __call__
    return self.view_func(request, *args, **kwargs)

  File "/srv/atizo/atizo/platform/views/", line 29, in logout

  File "/usr/lib/python2.4/site-packages/django/contrib/auth/", line 75, in logout

  File "/usr/lib/python2.4/site-packages/django/contrib/sessions/backends/", line 240, in flush

  File "/usr/lib/python2.4/site-packages/django/contrib/sessions/backends/", line 36, in create

  File "/usr/lib/python2.4/site-packages/django/contrib/sessions/backends/", line 58, in save

  File "/usr/lib/python2.4/site-packages/django/db/models/", line 329, in save
    self.save_base(force_insert=force_insert, force_update=force_update)

  File "/usr/lib/python2.4/site-packages/django/db/models/", line 401, in save_base
    result = manager._insert(values, return_id=update_pk)

  File "/usr/lib/python2.4/site-packages/django/db/models/", line 144, in _insert
    return insert_query(self.model, values, **kwargs)

  File "/usr/lib/python2.4/site-packages/django/db/models/", line 1054, in insert_query
    return query.execute_sql(return_id)

  File "/usr/lib/python2.4/site-packages/django/db/models/sql/", line 315, in execute_sql
    cursor = super(InsertQuery, self).execute_sql(None)

  File "/usr/lib/python2.4/site-packages/django/db/models/sql/", line 2097, in execute_sql
    cursor.execute(sql, params)

ProgrammingError: syntax error at or near "RETURNING" at character 211

Change History (2)

comment:1 Changed 11 years ago by Ramiro Morales

If you are using PostgreSQL 8.1 then this could be a duplicate of #10467

comment:2 Changed 11 years ago by Reto Aebersold

Resolution: duplicate
Status: newclosed

Yes, I'm using PostgreSQL 8.1. It's definitely a duplicate of #10467, so I close this ticket.

Note: See TracTickets for help on using tickets.
Back to Top