Project

General

Profile

« Previous | Next » 

Revision 3485

sql_gen.py: Added ColType

View differences:

lib/sql_gen.py
425 425
    def to_str(self, db):
426 426
        return self.table.to_str(db)+'%ROWTYPE'
427 427

  
428
class ColType(Code):
429
    def __init__(self, col):
430
        Code.__init__(self)
431
        
432
        self.col = col
433
    
434
    def to_str(self, db):
435
        return self.col.to_str(db)+'%TYPE'
436

  
428 437
##### Functions
429 438

  
430 439
Function = Table

Also available in: Unified diff