Project

General

Profile

« Previous | Next » 

Revision 3470

sql_gen.py: FunctionDef: Accept parameters as FunctionParam objects instead of strings

View differences:

sql_gen.py
484 484
        self.modifiers = modifiers
485 485
    
486 486
    def to_str(self, db):
487
        args_str = (', '.join((a.to_str(db) for a in self.args)))
487 488
        str_ = '''\
488
CREATE FUNCTION '''+self.function.to_str(db)+'''('''+(', '.join(self.args))+''')
489
CREATE FUNCTION '''+self.function.to_str(db)+'''('''+args_str+''')
489 490
RETURNS '''+self.return_type+'''
490 491
LANGUAGE '''+self.body.lang+'''
491 492
'''

Also available in: Unified diff