diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-03-17 18:06:16 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-03-17 18:06:16 +0100 |
| commit | 45045bb7a1085215af983fa19398ef5f9e11f459 (patch) | |
| tree | 0a46ce25d111e4752d35da884bf32021fbfa1681 /odoo/tools/sql.py | |
| parent | c2c03ce52c3d1740eba896b2547a5084da596145 (diff) | |
| parent | c8f01e3b62fb11baec4623d841960baac2284dd8 (diff) | |
[MERGE] forward port branch saas-15 up to c8f01e3b62f
Diffstat (limited to 'odoo/tools/sql.py')
| -rw-r--r-- | odoo/tools/sql.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/odoo/tools/sql.py b/odoo/tools/sql.py index 34d1a84cd98..bd947dd913c 100644 --- a/odoo/tools/sql.py +++ b/odoo/tools/sql.py @@ -141,7 +141,7 @@ def fix_foreign_key(cr, tablename1, columnname1, tablename2, columnname2, ondele """ # Do not use 'information_schema' here, as those views are awfully slow! deltype = _CONFDELTYPES.get(ondelete.upper(), 'a') - query = """ SELECT con.conname, c2.relname, a2.attnum, con.confdeltype as deltype + query = """ SELECT con.conname, c2.relname, a2.attname, con.confdeltype as deltype FROM pg_constraint as con, pg_class as c1, pg_class as c2, pg_attribute as a1, pg_attribute as a2 WHERE con.contype='f' AND con.conrelid=c1.oid AND con.confrelid=c2.oid |
