Django

Code

Ticket #4057 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

unquoted sequence names in postgresql and postgresql_psycopg2 backends

Reported by: Gary Wilson <gary.wilson@gmail.com> Assigned to: adrian
Milestone: Component: Database layer (models, ORM)
Version: SVN Keywords: flush
Cc: Triage Stage: Ready for checkin
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

get_sql_flush() functions are not quoting sequence names, causing an error for table names with an uppercase letter:

ProgrammingError: ERROR:  relation "fixtures_regress_plant_id_seq" does not exist

ALTER SEQUENCE Fixtures_regress_plant_id_seq RESTART WITH 1;

Attachments

4057.diff (3.8 kB) - added by Gary Wilson <gary.wilson@gmail.com> on 04/16/07 14:04:30.
fix + regression test

Change History

04/16/07 14:04:30 changed by Gary Wilson <gary.wilson@gmail.com>

  • attachment 4057.diff added.

fix + regression test

04/16/07 14:07:28 changed by Gary Wilson <gary.wilson@gmail.com>

  • needs_better_patch changed.
  • stage changed from Unreviewed to Ready for checkin.
  • needs_tests changed.
  • needs_docs changed.

Should the test be done in a transaction or is that handled automatically?

04/17/07 06:11:27 changed by russellm

  • status changed from new to closed.
  • resolution set to fixed.

(In [5017]) Fixed #4057 -- Fixed problem with quoting of sequence names on Postgres backends. Thanks, Gary Wilson.


Add/Change #4057 (unquoted sequence names in postgresql and postgresql_psycopg2 backends)




Change Properties
Action