Opened 17 years ago

Closed 17 years ago

#4057 closed (fixed)

unquoted sequence names in postgresql and postgresql_psycopg2 backends

Reported by: Gary Wilson <gary.wilson@…> Owned by: Adrian Holovaty
Component: Database layer (models, ORM) Version: dev
Severity: Keywords: flush
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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 (1)

4057.diff (3.8 KB ) - added by Gary Wilson <gary.wilson@…> 17 years ago.
fix + regression test

Download all attachments as: .zip

Change History (3)

by Gary Wilson <gary.wilson@…>, 17 years ago

Attachment: 4057.diff added

fix + regression test

comment:1 by Gary Wilson <gary.wilson@…>, 17 years ago

Triage Stage: UnreviewedReady for checkin

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

comment:2 by Russell Keith-Magee, 17 years ago

Resolution: fixed
Status: newclosed

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

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