Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#13832 closed (duplicate)

Changeset #13363 broke PostgreSQL support for app names with uppercase characters

Reported by: Simon Meers Owned by: Simon Meers
Component: Database layer (models, ORM) Version: dev
Severity: Keywords: postgresql, uppercase, table_name
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

As described here http://www.postgresql.org/docs/8.4/static/functions-info.html#FUNCTIONS-INFO-CATALOG-TABLE, for pg_get_serial_sequence(table_name, column_name), "Because the first parameter is potentially a schema and table, it is not treated as a double-quoted identifier, meaning it is lowercased by default, while the second parameter, being just a column name, is treated as double-quoted and has its case preserved"

Attachments (1)

13832.diff (3.5 KB ) - added by Simon Meers 14 years ago.

Download all attachments as: .zip

Change History (5)

by Simon Meers, 14 years ago

Attachment: 13832.diff added

comment:1 by Alex Gaynor, 14 years ago

Resolution: duplicate
Status: newclosed

This looks like a dupe of #13821.

comment:2 by Simon Meers, 14 years ago

Ah, yes it is; no keyword searches brought that one up for me thanks to the comparatively ambiguous title and description.

My patch is better than the one provided for #13821 mind you, as it uses quote_name and includes a regression test.

comment:3 by Alex Gaynor, 14 years ago

I agree, feel free to reupload the patch ;)

comment:4 by Jacob, 13 years ago

milestone: 1.3

Milestone 1.3 deleted

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