diff options
| author | atp (Open ERP) <atp@tinyerp.co.in> | 2010-06-22 10:45:44 +0530 |
|---|---|---|
| committer | atp (Open ERP) <atp@tinyerp.co.in> | 2010-06-22 10:45:44 +0530 |
| commit | b0efd26edd9f4e2aa75424b787ea46d2be15cd04 (patch) | |
| tree | e78cdb693e62a5c9a17f77a395eec51fb34becbf /addons/olap/wizard/wizard_load_data.py | |
| parent | 46bb1ea51be702758d68a5f69db32c82dbccf9bd (diff) | |
| parent | 2319190c5a20cb8095f85cacca89a33164ba93d7 (diff) | |
[MERGE]: merge with lp:~openerp-dev/openobject-addons/trunk-dev-addons2
bzr revid: atp@tinyerp.co.in-20100622051544-c7hig73zk2at66cy
Diffstat (limited to 'addons/olap/wizard/wizard_load_data.py')
| -rw-r--r-- | addons/olap/wizard/wizard_load_data.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/addons/olap/wizard/wizard_load_data.py b/addons/olap/wizard/wizard_load_data.py index 0e7ae8a1508..989c6330469 100644 --- a/addons/olap/wizard/wizard_load_data.py +++ b/addons/olap/wizard/wizard_load_data.py @@ -73,7 +73,7 @@ def olap_db_connect(self,cr,uid,part,context={}): tables_id = map(lambda x: str(tables[x]),tables) cols={} if tables_id: - cr.execute('select column_db_name,id,table_id from olap_database_columns where table_id in (' + ','.join(tables_id) +')') + cr.execute('select column_db_name,id,table_id from olap_database_columns where table_id IN (' + ','.join(tables_id) +')') else: cr.execute('select column_db_name,id,table_id from olap_database_columns') @@ -120,7 +120,7 @@ def olap_db_connect(self,cr,uid,part,context={}): from INFORMATION_schema.key_column_usage where - constraint_name in ( + constraint_name IN ( select constraint_name from INFORMATION_SCHEMA .table_constraints where constraint_type = 'PRIMARY KEY')""") @@ -138,7 +138,7 @@ def olap_db_connect(self,cr,uid,part,context={}): from INFORMATION_schema.constraint_column_usage where - constraint_name in ( + constraint_name IN ( select constraint_name from INFORMATION_SCHEMA.table_constraints where constraint_type = 'FOREIGN KEY')""") @@ -149,7 +149,7 @@ def olap_db_connect(self,cr,uid,part,context={}): from INFORMATION_schema.key_column_usage where - constraint_name in ( + constraint_name IN ( select constraint_name from INFORMATION_SCHEMA.table_constraints where constraint_type = 'FOREIGN KEY')""") @@ -181,7 +181,7 @@ def olap_db_connect(self,cr,uid,part,context={}): tables_id = map(lambda x: str(tables[x]),tables) cols={} if tables_id: - cr.execute('select column_db_name,id,table_id from olap_database_columns where table_id in (' + ','.join(tables_id) +')') + cr.execute('select column_db_name,id,table_id from olap_database_columns where table_id IN (' + ','.join(tables_id) +')') else: cr.execute('select column_db_name,id,table_id from olap_database_columns') @@ -228,10 +228,10 @@ def olap_db_connect(self,cr,uid,part,context={}): from INFORMATION_schema.key_column_usage where table_schema= %s and - constraint_name in ( + constraint_name IN ( select constraint_name from INFORMATION_SCHEMA .table_constraints where - constraint_type in('PRIMARY KEY','FOREIGN KEY')) + constraint_type IN ('PRIMARY KEY','FOREIGN KEY')) """,(db_name)) for constraint in cr_db.fetchall(): @@ -267,7 +267,7 @@ def olap_db_connect(self,cr,uid,part,context={}): tables_id = map(lambda x: str(tables[x]),tables) cols={} if tables_id: - cr.execute('select column_db_name,id,table_id from olap_database_columns where table_id in (' + ','.join(tables_id) +')') + cr.execute('select column_db_name,id,table_id from olap_database_columns where table_id IN (' + ','.join(tables_id) +')') else: cr.execute('select column_db_name,id,table_id from olap_database_columns') @@ -323,7 +323,7 @@ def olap_db_connect(self,cr,uid,part,context={}): from all_cons_columns where - constraint_name in ( + constraint_name IN ( select constraint_name from all_constraints where constraint_type = 'P' and owner= %s) @@ -353,7 +353,7 @@ def olap_db_connect(self,cr,uid,part,context={}): from all_cons_columns where - constraint_name in ( + constraint_name IN ( select constraint_name from all_constraints where constraint_type = 'R' and owner = %s) |
