Changes between Version 1 and Version 2 of Ticket #23541


Ignore:
Timestamp:
Sep 22, 2014, 9:25:30 PM (10 years ago)
Author:
Aryeh Hillman
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23541 – Description

    v1 v2  
    331. Install this function at a shell for PostgreSQL
    44
    5 {{{CREATE FUNCTION exec(text) returns text language plpgsql volatile
     5{{{
     6CREATE FUNCTION exec(text) returns text language plpgsql volatile
    67  AS $f$
    78    BEGIN
     
    910      RETURN $1;
    1011    END;
    11 $f$;}}}
     12$f$;
     13}}}
    1214
    1315source: http://wiki.postgresql.org/wiki/Dynamic_DDL
     
    15172. Write a RunSQL operation to help rename some tables
    1618
    17 {{{class Migration(migrations.Migration):
     19{{{
     20class Migration(migrations.Migration):
    1821...
    1922    operations = [
     
    2528        ),
    2629    ]
    27 ...}}}
     30...
     31}}}
    2832
    29333. Run the migration. I got this error:
    3034
    31 {{{Traceback (most recent call last):
     35{{{
     36Traceback (most recent call last):
    3237  File "./manage.py", line 10, in <module>
    3338    execute_from_command_line(sys.argv)
     
    5661  File "/Users/abhillman/stable_env/lib/python2.7/site-packages/django/db/backends/utils.py", line 65, in execute
    5762    return self.cursor.execute(sql, params)
    58 IndexError: list index out of range}}}
     63IndexError: list index out of range
     64}}}
    5965
    6066Not sure what's going on here. Could it be the custom PGSQL function?
Back to Top