Project

General

Profile

« Previous | Next » 

Revision 2917

sql.py: DbConn: Added TempFunction()

View differences:

lib/sql.py
391 391
        default = sql_gen.as_Code(default, self)
392 392
        
393 393
        return sql_gen.TypedCol(col.name, type_, default, nullable)
394
    
395
    def TempFunction(self, name):
396
        if self.debug_temp: schema = None
397
        else: schema = 'pg_temp'
398
        return sql_gen.Function(name, schema)
394 399

  
395 400
connect = DbConn
396 401

  

Also available in: Unified diff