Revision 4935
Added by Aaron Marcuse-Kubitza about 12 years ago
sql_gen.py | ||
---|---|---|
499 | 499 |
def to_str(self, db): |
500 | 500 |
return self.col.to_str(db)+'%TYPE' |
501 | 501 |
|
502 |
class ArrayType(Code): |
|
503 |
def __init__(self, elem_type): |
|
504 |
Code.__init__(self) |
|
505 |
elem_type = as_Code(elem_type) |
|
506 |
|
|
507 |
self.elem_type = elem_type |
|
508 |
|
|
509 |
def to_str(self, db): |
|
510 |
return self.elem_type.to_str(db)+'[]' |
|
511 |
|
|
502 | 512 |
##### Functions |
503 | 513 |
|
504 | 514 |
Function = Table |
Also available in: Unified diff
sql_gen.py: Added ArrayType