Changeset 0ccb123 in osmose-backend


Ignore:
Timestamp:
Nov 28, 2014 7:37:57 PM (5 years ago)
Author:
Jocelyn Jaubert <jocelyn.jaubert@…>
Branches:
master
Children:
70e5ee7
Parents:
8fa2724
Message:

Explain CREATE TABLE too in debug mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • analysers/Analyser_Osmosis.py

    r5821a6a r0ccb123  
    129129        if self.explain_sql: 
    130130            self.logger.log(sql.strip()) 
    131         if self.explain_sql and sql.strip().startswith("SELECT"): 
     131        if self.explain_sql and (sql.strip().startswith("SELECT") or sql.strip().startswith("CREATE TABLE")): 
    132132            sql_explain = "EXPLAIN " + sql.split(";")[0] 
    133133            self.giscurs.execute(sql_explain) 
Note: See TracChangeset for help on using the changeset viewer.