Revision 3470
Added by Aaron Marcuse-Kubitza almost 12 years ago
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
sql_gen.py: FunctionDef: Accept parameters as FunctionParam objects instead of strings