Opened 18 years ago
Closed 18 years ago
#4057 closed (fixed)
unquoted sequence names in postgresql and postgresql_psycopg2 backends
Reported by: | 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)
Change History (3)
by , 18 years ago
comment:1 by , 18 years ago
Triage Stage: | Unreviewed → Ready for checkin |
---|
Should the test be done in a transaction or is that handled automatically?
comment:2 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
fix + regression test