There was already a discussion several times about that. It would be
definitely woth reviewing.

There's another ticket related to this with patches and tests (duplicate?)


http://code.djangoproject.com/ticket/13941


A.

------------------------------------------------------
Ales Zoulek
+420 604 332 515
Jabber: [email protected]
------------------------------------------------------



On Thu, Jul 29, 2010 at 12:58 AM, Simon Meers <[email protected]> wrote:
> The patch here [1] fixes this if anyone feels like reviewing. This bug is
> preventing me from using trunk on several projects at present, so it would
> be great to get the patch checked in. It also fixes a number of other
> problems people have been reporting, I believe.
>
> Simon
>
> [1] http://code.djangoproject.com/ticket/13821
>
>
> On 29 July 2010 03:19, ryan_peaceworks <[email protected]> wrote:
>>
>> Hi,
>>
>> I'm running trunk and I found an issue where my model's tablename
>> contains uppercase characters.
>>
>> svn praise says this broke in r13363
>>
>> r13363   russellm         # Use pg_get_serial_sequence to get the
>> underlying sequence name
>> r13363   russellm         # from the table name and column name
>> (available since PostgreSQL 8)
>> r13363   russellm         cursor.execute("SELECT
>> CURRVAL(pg_get_serial_sequence('%s','%s'))" % (table_name, pk_name))
>>
>> The issue is that table_name is not double-quoted when necessary.
>>
>> Probably the string argument should be self.quote_name(table_name)
>> rather than just table_name.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django developers" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/django-developers?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/django-developers?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to